Miao-Yunzai/renderers/puppeteer/index.ts

19 lines
572 B
TypeScript
Raw Normal View History

2024-06-13 22:57:21 +08:00
import { PuppeteerLaunchOptions } from 'puppeteer';
import Puppeteer from './lib/puppeteer.js'
/**
*
2024-06-13 22:57:21 +08:00
* @param config
* @returns renderer
* @returns renderer.id IDrenderer中选择的id
* @returns renderer.type image
* @returns renderer.render
2024-06-18 22:52:19 +08:00
* @deprecated
*/
2024-06-13 22:57:21 +08:00
export default function (config?: PuppeteerLaunchOptions & {
2024-06-14 14:34:17 +08:00
chromiumPath?: string;
puppeteerWS?: any;
puppeteerTimeout?: any;
2024-06-13 22:57:21 +08:00
}) {
// TODO Puppeteer待简化重构
2023-09-15 08:15:25 +08:00
return new Puppeteer(config)
}