Alex Grönholm
Alex Grönholm

Reputation: 5901

How do I install typescript definitions for Electron?

I have two problems:

Upvotes: 3

Views: 3111

Answers (3)

Sohail Faruqui
Sohail Faruqui

Reputation: 452

For those who are using TypeScript version 2.0 + you can use npm to get that by executing following line

npm install --save @types/electron

Here is a quick reference from typescript documentation

http://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html

if you are using typescript version lower than 2 either you can use typing which other peoples already helped regard that

Upvotes: 3

Stephane L
Stephane L

Reputation: 3275

I had to use a different typing name :

typings install electron/github-electron --source dt --save --global

Upvotes: 1

toskv
toskv

Reputation: 31600

The source needs to be set to dt and it seems to work just fine.

$ typings install github-electron --source dt --global

Upvotes: 4

Related Questions