Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 continue.

like image 960
Alex Grönholm Avatar asked Mar 24 '26 09:03

Alex Grönholm


1 Answers

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

$ typings install github-electron --source dt --global
like image 69
toskv Avatar answered Mar 27 '26 08:03

toskv



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!