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

@ -103,3 +103,10 @@ declare namespace Chrome {
type SendMessageCallback = (result: any) => void;
}
}
interface Global extends NodeJS.Global {
require: NodeRequire;
module: NodeModule;
__filename: string;
__dirname: string;
}