electron-userland / electron-prebuilt-compile

electron-prebuilt with Babel and React built-in
167 stars 50 forks source link

Add a Typings file for use with TypeScript #34

Open charnpreetsingh opened 7 years ago

charnpreetsingh commented 7 years ago

As of version 1.6.10 electron includes a typings file for use by developers. It would be nice if this repository also included it, seeing that it tries to stay up to date with upstream electron.

Right now the temporary workaround is to specify where the typings file is in tsconfig.json via

"include": [ "node_modules/electron-prebuilt-compile/node_modules/electron" ]

otherwise Typescript cannot find the typings file.