@types/estree
Advanced tools
Comparing version 0.0.49 to 0.0.50
@@ -29,9 +29,9 @@ // Type definitions for ESTree AST specification | ||
type: string; | ||
loc?: SourceLocation | null; | ||
range?: [number, number]; | ||
loc?: SourceLocation | null | undefined; | ||
range?: [number, number] | undefined; | ||
} | ||
interface BaseNode extends BaseNodeWithoutComments { | ||
leadingComments?: Array<Comment>; | ||
trailingComments?: Array<Comment>; | ||
leadingComments?: Array<Comment> | undefined; | ||
trailingComments?: Array<Comment> | undefined; | ||
} | ||
@@ -51,3 +51,3 @@ | ||
interface SourceLocation { | ||
source?: string | null; | ||
source?: string | null | undefined; | ||
start: Position; | ||
@@ -68,3 +68,3 @@ end: Position; | ||
body: Array<Directive | Statement | ModuleDeclaration>; | ||
comments?: Array<Comment>; | ||
comments?: Array<Comment> | undefined; | ||
} | ||
@@ -80,4 +80,4 @@ | ||
params: Array<Pattern>; | ||
generator?: boolean; | ||
async?: boolean; | ||
generator?: boolean | undefined; | ||
async?: boolean | undefined; | ||
// The body is either BlockStatement or Expression because arrow functions | ||
@@ -108,3 +108,3 @@ // can have a body that's either. FunctionDeclarations and | ||
body: Array<Statement>; | ||
innerComments?: Array<Comment>; | ||
innerComments?: Array<Comment> | undefined; | ||
} | ||
@@ -121,3 +121,3 @@ | ||
consequent: Statement; | ||
alternate?: Statement | null; | ||
alternate?: Statement | null | undefined; | ||
} | ||
@@ -133,3 +133,3 @@ | ||
type: "BreakStatement"; | ||
label?: Identifier | null; | ||
label?: Identifier | null | undefined; | ||
} | ||
@@ -139,3 +139,3 @@ | ||
type: "ContinueStatement"; | ||
label?: Identifier | null; | ||
label?: Identifier | null | undefined; | ||
} | ||
@@ -157,3 +157,3 @@ | ||
type: "ReturnStatement"; | ||
argument?: Expression | null; | ||
argument?: Expression | null | undefined; | ||
} | ||
@@ -169,4 +169,4 @@ | ||
block: BlockStatement; | ||
handler?: CatchClause | null; | ||
finalizer?: BlockStatement | null; | ||
handler?: CatchClause | null | undefined; | ||
finalizer?: BlockStatement | null | undefined; | ||
} | ||
@@ -188,5 +188,5 @@ | ||
type: "ForStatement"; | ||
init?: VariableDeclaration | Expression | null; | ||
test?: Expression | null; | ||
update?: Expression | null; | ||
init?: VariableDeclaration | Expression | null | undefined; | ||
test?: Expression | null | undefined; | ||
update?: Expression | null | undefined; | ||
body: Statement; | ||
@@ -230,3 +230,3 @@ } | ||
id: Pattern; | ||
init?: Expression | null; | ||
init?: Expression | null | undefined; | ||
} | ||
@@ -284,3 +284,3 @@ | ||
key: Expression | PrivateIdentifier; | ||
value?: Expression | null; | ||
value?: Expression | null | undefined; | ||
computed: boolean; | ||
@@ -291,3 +291,3 @@ static: boolean; | ||
export interface FunctionExpression extends BaseFunction, BaseExpression { | ||
id?: Identifier | null; | ||
id?: Identifier | null | undefined; | ||
type: "FunctionExpression"; | ||
@@ -375,3 +375,3 @@ body: BlockStatement; | ||
type: "SwitchCase"; | ||
test?: Expression | null; | ||
test?: Expression | null | undefined; | ||
consequent: Array<Statement>; | ||
@@ -396,3 +396,3 @@ } | ||
value: string | boolean | number | null; | ||
raw?: string; | ||
raw?: string | undefined; | ||
} | ||
@@ -402,3 +402,3 @@ | ||
type: "Literal"; | ||
value?: RegExp | null; | ||
value?: RegExp | null | undefined; | ||
regex: { | ||
@@ -408,3 +408,3 @@ pattern: string; | ||
}; | ||
raw?: string; | ||
raw?: string | undefined; | ||
} | ||
@@ -414,5 +414,5 @@ | ||
type: "Literal"; | ||
value?: bigint | null; | ||
value?: bigint | null | undefined; | ||
bigint: string; | ||
raw?: string; | ||
raw?: string | undefined; | ||
} | ||
@@ -458,3 +458,3 @@ | ||
type: "YieldExpression"; | ||
argument?: Expression | null; | ||
argument?: Expression | null | undefined; | ||
delegate: boolean; | ||
@@ -480,3 +480,3 @@ } | ||
/** It is null when the template literal is tagged and the text has an invalid escape (e.g. - tag`\unicode and \u{55}`) */ | ||
cooked?: string | null; | ||
cooked?: string | null | undefined; | ||
raw: string; | ||
@@ -515,3 +515,3 @@ }; | ||
interface BaseClass extends BaseNode { | ||
superClass?: Expression | null; | ||
superClass?: Expression | null | undefined; | ||
body: ClassBody; | ||
@@ -542,3 +542,3 @@ } | ||
type: "ClassExpression"; | ||
id?: Identifier | null; | ||
id?: Identifier | null | undefined; | ||
} | ||
@@ -590,5 +590,5 @@ | ||
type: "ExportNamedDeclaration"; | ||
declaration?: Declaration | null; | ||
declaration?: Declaration | null | undefined; | ||
specifiers: Array<ExportSpecifier>; | ||
source?: Literal | null; | ||
source?: Literal | null | undefined; | ||
} | ||
@@ -595,0 +595,0 @@ |
{ | ||
"name": "@types/estree", | ||
"version": "0.0.49", | ||
"version": "0.0.50", | ||
"description": "TypeScript definitions for ESTree AST specification", | ||
@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estree", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "0a455b36fbd9e3f4bb9627b688c4dc2354b664c4ca558ca6de6d024fe2210168", | ||
"typesPublisherContentHash": "17c3bbf309fdb8f5ab9aed3719a85b192528e1cc459e4ce8336f68936d64b34d", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 02 Jul 2021 01:31:16 GMT | ||
* Last updated: Tue, 06 Jul 2021 19:03:41 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
23850