Skip to content

Commit b287954

Browse files
committed
Add definitions for electron-prebuilt package
I added definitions for API of electron-prebuilt package. There is already a directory for GitHub Electron. So I added electron-prebuilt.d.ts to it. If I should add new `electron-prebuilt` directory, please let me know that.
1 parent 855569d commit b287954

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/// <reference path="electron-prebuilt.d.ts" />
2+
/// <reference path="../node/node.d.ts" />
3+
4+
import electron = require('electron-prebuilt');
5+
import child_process = require('child_process');
6+
7+
child_process.spawn(electron);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Type definitions for electron-prebuilt 0.30.1
2+
// Project: https://github.com/mafintosh/electron-prebuilt
3+
// Definitions by: rhysd <https://github.com/rhysd>
4+
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5+
6+
declare module 'electron-prebuilt' {
7+
var electron: string;
8+
export = electron;
9+
}
10+

0 commit comments

Comments
 (0)