Alex Grönholm Alex Grönholm - 11 days ago 5x
TypeScript Question

How do I install typescript definitions for Electron?

I have two problems:

  • Which definitions should I install?
    typings search electron
    returns quite a few results.

  • How do I install them?
    typings install dt~github-electron --global --save
    gives me an error:

    Attempted to compile "github-electron" as an external module, but it
    looks like a global module. You'll need to enable the global option to


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

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