-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
51 lines (47 loc) · 1.17 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
export = prerendererPlugin
declare function prerendererPlugin (options?: PrerendererConfig): import('rollup').Plugin
interface PrerendererConfig {
staticDir: string
routes: string[]
indexPath?: string
renderer?: PuppeteerConfig
server?: {
port?: number
proxy?: object
}
}
interface RendererConfig {
renderAfterDocumentEvent?: string
renderAfterElementExists?: string
renderAfterTime?: number
maxConcurrentRoutes?: number
skipThirdPartyRequests?: boolean
consoleHandler?: (route: string, message: string) => void
injectProperty?: string
inject?: { [key: string]: unknown }
}
interface PuppeteerConfig extends RendererConfig {
ignoreHTTPSErrors?: boolean
headless?: boolean
executablePath?: string
slowMo?: number
defaultViewport?: {
width?: number
height?: number
deviceScaleFactor?: number
isMobile?: boolean
hasTouch?: boolean
isLandscape?: boolean
}
args?: string[]
ignoreDefaultArgs?: boolean | string[]
handleSIGINT?: boolean
handleSIGTERM?: boolean
handleSIGHUP?: boolean
timeout?: number
dumpio?: boolean
userDataDir?: string
env?: { [key: string]: unknown }
devtools?: boolean
pipe?: boolean
}