@types/estree
Advanced tools
Comparing version 0.0.37 to 0.0.38
@@ -24,12 +24,16 @@ // Type definitions for ESTree AST specification | ||
interface BaseNode { | ||
interface BaseNodeWithoutComments { | ||
// Every leaf interface that extends BaseNode must specify a type property. | ||
// The type property should be a string literal. For example, Identifier | ||
// has: `type: "Identifier"` | ||
type: string; | ||
loc?: SourceLocation | null; | ||
range?: [number, number]; | ||
} | ||
interface BaseNode extends BaseNodeWithoutComments { | ||
leadingComments?: Array<Comment>; | ||
trailingComments?: Array<Comment>; | ||
loc?: SourceLocation | null; | ||
range?: [number, number]; | ||
} | ||
export type Node = | ||
@@ -41,3 +45,4 @@ Identifier | Literal | Program | Function | SwitchCase | CatchClause | | ||
export interface Comment { | ||
export interface Comment extends BaseNodeWithoutComments { | ||
type: "Line" | "Block"; | ||
value: string; | ||
@@ -79,3 +84,2 @@ } | ||
export type Statement = | ||
@@ -87,2 +91,3 @@ ExpressionStatement | BlockStatement | EmptyStatement | | ||
ForStatement | ForInStatement | ForOfStatement | Declaration; | ||
interface BaseStatement extends BaseNode { } | ||
@@ -193,2 +198,3 @@ | ||
FunctionDeclaration | VariableDeclaration | ClassDeclaration; | ||
interface BaseDeclaration extends BaseStatement { } | ||
@@ -222,2 +228,3 @@ | ||
AwaitExpression; | ||
export interface BaseExpression extends BaseNode { } | ||
@@ -263,3 +270,3 @@ | ||
operator: UnaryOperator; | ||
prefix: boolean; | ||
prefix: true; | ||
argument: Expression; | ||
@@ -327,2 +334,3 @@ } | ||
AssignmentPattern | MemberExpression; | ||
interface BasePattern extends BaseNode { } | ||
@@ -352,3 +360,3 @@ | ||
value: string | boolean | number | null; | ||
raw: string; | ||
raw?: string; | ||
} | ||
@@ -358,3 +366,3 @@ | ||
type: "Literal"; | ||
value: RegExp; | ||
value?: RegExp | null; | ||
regex: { | ||
@@ -364,3 +372,3 @@ pattern: string; | ||
}; | ||
raw: string; | ||
raw?: string; | ||
} | ||
@@ -367,0 +375,0 @@ |
{ | ||
"name": "@types/estree", | ||
"version": "0.0.37", | ||
"version": "0.0.38", | ||
"description": "TypeScript definitions for ESTree AST specification", | ||
@@ -9,3 +9,4 @@ "license": "MIT", | ||
"name": "RReverser", | ||
"url": "https://github.com/RReverser" | ||
"url": "https://github.com/RReverser", | ||
"githubUsername": "RReverser" | ||
} | ||
@@ -20,5 +21,4 @@ ], | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "27a92f458ca416ba37deb65c8d26dc1bc5a2c2f36e269efa1ce3c54dffc7786e", | ||
"typesPublisherContentHash": "19879f4eaa24d649d1de20d95bf747d91637d037470d47442d96dad57ec9a424", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 24 Jul 2017 18:01:45 GMT | ||
* Last updated: Fri, 13 Oct 2017 10:31:50 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17606
450