Files
RSSHub/lib/playwright-worker.d.ts

18 lines
478 B
TypeScript

declare module '*assets/build/playwright-worker.mjs' {
import type { chromium } from 'patchright';
interface PlaywrightCore {
getPlaywrightVersion: () => string;
inprocess: {
playwright: { chromium: typeof chromium };
};
server: {
WebSocketTransport: {
connect: (...args: any[]) => Promise<any>;
};
};
}
export function getPlaywrightCore(): Promise<PlaywrightCore>;
}