Use properly modular estree in downstream typings

This commit is contained in:
Peter Burns
2016-08-03 18:22:42 -07:00
parent 9773821981
commit 8ff92a89b8
6 changed files with 8 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
/// <reference types="estree" />
import acorn = require('acorn');
import * as ESTree from 'estree';
declare var token: acorn.Token;
declare var tokens: acorn.Token[];
+1
View File
@@ -7,6 +7,7 @@
export as namespace acorn;
export = acorn;
import * as ESTree from 'estree';
declare namespace acorn {
var version: string;
+1
View File
@@ -2,6 +2,7 @@
import esprima = require('esprima');
import * as ESTree from 'estree';
var token: esprima.Token;
var comment: esprima.Comment;
+2 -1
View File
@@ -7,6 +7,7 @@
export = esprima;
export as namespace esprima;
import * as ESTree from 'estree';
declare namespace esprima {
@@ -20,7 +21,7 @@ declare namespace esprima {
value: string;
}
interface Comment extends ESTree.Node {
interface Comment extends ESTree.BaseNode {
value: string;
}
+1
View File
@@ -5,6 +5,7 @@
/// <reference types="esprima" />
import * as ESTree from 'estree';
/**
* Evaluates the given ESTree.Expression, with the given named variables in place.
+2
View File
@@ -2,6 +2,8 @@
import evaluate = require('static-eval');
import esprima = require('esprima');
import * as ESTree from 'estree';
var parse = esprima.parse;