mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Merge pull request #5003 from enlight/first-mate-ts1.5
Use ES6 style import in typings tests for Atom's first-mate library
This commit is contained in:
commit
da534eb4d8
1 file changed
+1
-6
@@ -1,11 +1,6 @@
|
||||
/// <reference path="./first-mate.d.ts" />
|
||||
|
||||
import firstMate = require('first-mate');
|
||||
var GrammarRegistry = firstMate.GrammarRegistry;
|
||||
var Grammar = firstMate.GrammarRegistry;
|
||||
type IToken = AtomFirstMate.IToken;
|
||||
// The import and type aliasing above can be done more concisely in TypeScript 1.5+:
|
||||
//import { GrammarRegistry, Grammar, IToken } from "first-mate";
|
||||
import { GrammarRegistry, Grammar, IToken } from "first-mate";
|
||||
|
||||
var registry = new GrammarRegistry({ maxTokensPerLine: 100 });
|
||||
var grammar = registry.loadGrammarSync('javascript.json');
|
||||
|
||||
Reference in new issue
Block a user