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:
Felix Rieseberg 2019-02-19 17:05:14 +00:00 committed by Samuel Attard
parent 2223114f20
commit 91f81b4b72
4 changed files with 38 additions and 12 deletions

View file

@ -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;
}