How to use electron? in typeScript

Electron Version: 1.7.6
Operating System: windows 7
Last known working Electron version: 1.7.6
Angular Version: 5.0.0
Typescript Version: 2.4.2
I want to use electron, in typescript in Angular 5 but it doesn"t work.

const {shell} = require("electron") // 

// 
import electron from "electron"; 
import { shell} from "electron";

it doesn"t work, and the whole application is wrong. I feel that Electron is very unfriendly in typeScript.

ask the bosses how to use Electron? in Angular 5.0,


https://github.com/angular/an.


https://github.com/foliouTeam.
I use webpack to package typescript in this project to run
seems not to answer the question, please ignore

Menu