mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Use ES6 style import in typings tests for atom-keymap library
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
/// <reference path="./atom-keymap.d.ts" />
|
||||
|
||||
import atomKeymap = require('atom-keymap');
|
||||
var KeymapManager = atomKeymap.KeymapManager;
|
||||
type ICompleteMatchEvent = AtomKeymap.ICompleteMatchEvent;
|
||||
// The import and type aliasing above can be done more concisely in TypeScript 1.5+:
|
||||
//import { KeymapManager, ICompleteMatchEvent } from "atom-keymap";
|
||||
import { KeymapManager, ICompleteMatchEvent } from "atom-keymap";
|
||||
|
||||
var manager = new KeymapManager();
|
||||
manager.add('some/unique/path', {
|
||||
|
||||
Reference in New Issue
Block a user