We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84bd7fc commit 38044c8Copy full SHA for 38044c8
lib/spectron.d.ts
@@ -118,7 +118,13 @@ declare module 'spectron' {
118
): Promise<AccessibilityAuditResult>;
119
}
120
121
- export type SpectronWindow = { [P in keyof Electron.BrowserWindow]: Electron.BrowserWindow[P] extends (...args: infer A) => infer R ? (...args: A) => Promise<R> : undefined };
+ export type SpectronWindow = {
122
+ [P in keyof Electron.BrowserWindow]: Electron.BrowserWindow[P] extends (
123
+ ...args: infer A
124
+ ) => infer R
125
+ ? (...args: A) => Promise<R>
126
+ : undefined;
127
+ };
128
129
export interface SpectronWebContents extends Electron.WebContents {
130
savePage(
0 commit comments