refactor: Port renderer/init to TypeScript (#17027)
* refactor: Port renderer/init to TypeScript * Update lib/renderer/init.ts Co-Authored-By: felixrieseberg <felix@felixrieseberg.com> * refactor: Type this a bit more loosely * refactor: Type parseOption strictly
This commit is contained in:
parent
2223114f20
commit
91f81b4b72
4 changed files with 38 additions and 12 deletions
15
typings/internal-ambient.d.ts
vendored
15
typings/internal-ambient.d.ts
vendored
|
@ -36,7 +36,16 @@ declare namespace NodeJS {
|
|||
}
|
||||
}
|
||||
|
||||
declare interface Window {
|
||||
ELECTRON_DISABLE_SECURITY_WARNINGS?: boolean
|
||||
ELECTRON_ENABLE_SECURITY_WARNINGS?: boolean
|
||||
declare module NodeJS {
|
||||
interface Global {
|
||||
require: NodeRequire;
|
||||
module: NodeModule;
|
||||
__filename: string;
|
||||
__dirname: string;
|
||||
}
|
||||
}
|
||||
|
||||
declare interface Window {
|
||||
ELECTRON_DISABLE_SECURITY_WARNINGS?: boolean;
|
||||
ELECTRON_ENABLE_SECURITY_WARNINGS?: boolean;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue