Skip to content

ophidian-lib/electron-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript Definitions For Electron

This is just what it says on the tin: the electron.d.ts from Electron's main distribution, minus the postinstall scripts.

(Why? Because if you want to use Electron APIs when writing plugins for apps like Obsidian, you don't need the Electron binaries, just the API definitions.)

Currently, the Electron version provided is 24.3.1, corresponding to the version used by the Obsidian 1.3.5 runtime, the previous major release of Obsidian.

Note: if you want VSCode to pick up these typings without an explicit import "@ophidian/electron-types"; somwehere in your project, you'll need to rename it in your package.json, like so:

{
  "devDependencies": {
    "@types/electron": "npm:@ophidian/[email protected]",
  }
}

This should then be picked up by TypeScript without needing an explicit import.

About

Electron types (only) for Obsidian plugin development

Resources

License

Stars

Watchers

Forks

Packages

No packages published