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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5de19-4449d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5de19-4449d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?