To get you up and running as fast as possible with TypeScript and Electron, we have provided a basic template that utilizes tsc
and eslint
.
If you need to use import
or export
statements, it's recommended to use the TypeScript + Webpack template instead.
npx create-electron-app my-new-app --template=typescript
yarn create electron-app my-new-app --template=typescript
Once you've initialized the template, you'll need to run npm start
(or yarn start
, respectively) in the generated directory.