mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
compliant fixes for errors by --target es6
This commit is contained in:
@@ -16,12 +16,11 @@ import {
|
||||
crashReporter,
|
||||
nativeImage,
|
||||
screen,
|
||||
shell
|
||||
shell,
|
||||
hideInternalModules
|
||||
} from 'electron';
|
||||
|
||||
require('electron').hideInternalModules();
|
||||
|
||||
import path = require('path');
|
||||
import * as path from 'path';
|
||||
|
||||
// Quick start
|
||||
// https://github.com/atom/electron/blob/master/docs/tutorial/quick-start.md
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
shell
|
||||
} from 'electron';
|
||||
|
||||
import fs = require('fs');
|
||||
import * as fs from 'fs';
|
||||
|
||||
// In renderer process (web page).
|
||||
// https://github.com/atom/electron/blob/master/docs/api/ipc-renderer.md
|
||||
|
||||
Reference in New Issue
Block a user