electron flow type definitions

Summary: Adding a flowtype library definition for electron 3 and fixing related type errors

Reviewed By: passy

Differential Revision: D9124758

fbshipit-source-id: e09cb5b05ba952e7f95f68f9043edc586f81ae83
This commit is contained in:
Daniel Büchele
2018-08-02 03:41:53 -07:00
committed by Facebook Github Bot
parent 69eaedcbb0
commit 75dfbf51f8
9 changed files with 3767 additions and 75 deletions

3745
flow-typed/npm/electron-v3.0.0-beta.4.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,59 +0,0 @@
// flow-typed signature: 451c88326bb7cc6aa79491d34e1c60b0
// flow-typed version: <<STUB>>/electron_v1.7.3/flow_v0.59.0
/**
* This is an autogenerated libdef stub for:
*
* 'electron'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'electron' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'electron/cli' {
declare module.exports: any;
}
declare module 'electron/install' {
declare module.exports: any;
}
declare module 'electron/test/errors' {
declare module.exports: any;
}
declare module 'electron/test/index' {
declare module.exports: any;
}
// Filename aliases
declare module 'electron/cli.js' {
declare module.exports: $Exports<'electron/cli'>;
}
declare module 'electron/index' {
declare module.exports: $Exports<'electron'>;
}
declare module 'electron/index.js' {
declare module.exports: $Exports<'electron'>;
}
declare module 'electron/install.js' {
declare module.exports: $Exports<'electron/install'>;
}
declare module 'electron/test/errors.js' {
declare module.exports: $Exports<'electron/test/errors'>;
}
declare module 'electron/test/index.js' {
declare module.exports: $Exports<'electron/test/index'>;
}