Skip to content

Commit 6c5184d

Browse files
codebytereMarshallOfSound
authored andcommitted
feat: remove Event interface from hardcoded types (#131)
BREAKING CHANGE: * refactor: remove Event interface from hardcoded types * feat: support 'extends' in structure docs
1 parent a581d76 commit 6c5184d

File tree

5 files changed

+311
-169
lines changed

5 files changed

+311
-169
lines changed

base/base_inner.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,4 @@
1616

1717
class Accelerator extends String {
1818

19-
}
20-
21-
interface Event extends GlobalEvent {
22-
preventDefault: () => void;
23-
sender: WebContents;
24-
returnValue: any;
25-
ctrlKey?: boolean;
26-
metaKey?: boolean;
27-
shiftKey?: boolean;
28-
altKey?: boolean;
2919
}

lib/module-declaration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const generateModuleDeclaration = (module, index, API) => {
2626
moduleAPI.push('', `// Docs: ${module.websiteUrl}`, '')
2727
}
2828
} else {
29-
moduleAPI.push(`interface ${_.upperFirst(module.name)} {`)
29+
moduleAPI.push(`interface ${_.upperFirst(module.name)}${module.extends ? ` extends ${module.extends}` : ''} {`)
3030
moduleAPI.push('', `// Docs: ${module.websiteUrl}`, '')
3131
}
3232
}

0 commit comments

Comments
 (0)