@types/esprima
Advanced tools
Comparing version 2.1.37 to 2.1.38
@@ -10,96 +10,94 @@ // Type definitions for Esprima v2.1.0 | ||
export as namespace esprima; | ||
import * as ESTree from 'estree'; | ||
import * as ESTree from "estree"; | ||
declare namespace esprima { | ||
const version: string; | ||
const version: string; | ||
function parse(code: string, options?: Options, delegate?: (node: ESTree.Node, meta: any) => void): ESTree.Program; | ||
function tokenize(code: string, options?: Options): Array<Token>; | ||
function parse(code: string, options?: Options, delegate?: (node: ESTree.Node, meta: any) => void): ESTree.Program; | ||
function tokenize(code: string, options?: Options): Array<Token>; | ||
interface Token { | ||
type: string; | ||
value: string; | ||
} | ||
interface Token { | ||
type: string; | ||
value: string; | ||
} | ||
interface Options { | ||
loc?: boolean | undefined; | ||
range?: boolean | undefined; | ||
raw?: boolean | undefined; | ||
tokens?: boolean | undefined; | ||
comment?: boolean | undefined; | ||
attachComment?: boolean | undefined; | ||
tolerant?: boolean | undefined; | ||
source?: boolean | undefined; | ||
sourceType?: "script" | "module" | undefined; | ||
} | ||
interface Options { | ||
loc?: boolean | undefined; | ||
range?: boolean | undefined; | ||
raw?: boolean | undefined; | ||
tokens?: boolean | undefined; | ||
comment?: boolean | undefined; | ||
attachComment?: boolean | undefined; | ||
tolerant?: boolean | undefined; | ||
source?: boolean | undefined; | ||
sourceType?: 'script' | 'module' | undefined; | ||
} | ||
const Syntax: { | ||
AssignmentExpression: 'AssignmentExpression', | ||
AssignmentPattern: 'AssignmentPattern', | ||
ArrayExpression: 'ArrayExpression', | ||
ArrayPattern: 'ArrayPattern', | ||
ArrowFunctionExpression: 'ArrowFunctionExpression', | ||
BlockStatement: 'BlockStatement', | ||
BinaryExpression: 'BinaryExpression', | ||
BreakStatement: 'BreakStatement', | ||
CallExpression: 'CallExpression', | ||
CatchClause: 'CatchClause', | ||
ClassBody: 'ClassBody', | ||
ClassDeclaration: 'ClassDeclaration', | ||
ClassExpression: 'ClassExpression', | ||
ConditionalExpression: 'ConditionalExpression', | ||
ContinueStatement: 'ContinueStatement', | ||
DoWhileStatement: 'DoWhileStatement', | ||
DebuggerStatement: 'DebuggerStatement', | ||
EmptyStatement: 'EmptyStatement', | ||
ExportAllDeclaration: 'ExportAllDeclaration', | ||
ExportDefaultDeclaration: 'ExportDefaultDeclaration', | ||
ExportNamedDeclaration: 'ExportNamedDeclaration', | ||
ExportSpecifier: 'ExportSpecifier', | ||
ExpressionStatement: 'ExpressionStatement', | ||
ForStatement: 'ForStatement', | ||
ForOfStatement: 'ForOfStatement', | ||
ForInStatement: 'ForInStatement', | ||
FunctionDeclaration: 'FunctionDeclaration', | ||
FunctionExpression: 'FunctionExpression', | ||
Identifier: 'Identifier', | ||
IfStatement: 'IfStatement', | ||
ImportDeclaration: 'ImportDeclaration', | ||
ImportDefaultSpecifier: 'ImportDefaultSpecifier', | ||
ImportNamespaceSpecifier: 'ImportNamespaceSpecifier', | ||
ImportSpecifier: 'ImportSpecifier', | ||
Literal: 'Literal', | ||
LabeledStatement: 'LabeledStatement', | ||
LogicalExpression: 'LogicalExpression', | ||
MemberExpression: 'MemberExpression', | ||
MetaProperty: 'MetaProperty', | ||
MethodDefinition: 'MethodDefinition', | ||
NewExpression: 'NewExpression', | ||
ObjectExpression: 'ObjectExpression', | ||
ObjectPattern: 'ObjectPattern', | ||
Program: 'Program', | ||
Property: 'Property', | ||
RestElement: 'RestElement', | ||
ReturnStatement: 'ReturnStatement', | ||
SequenceExpression: 'SequenceExpression', | ||
SpreadElement: 'SpreadElement', | ||
Super: 'Super', | ||
SwitchCase: 'SwitchCase', | ||
SwitchStatement: 'SwitchStatement', | ||
TaggedTemplateExpression: 'TaggedTemplateExpression', | ||
TemplateElement: 'TemplateElement', | ||
TemplateLiteral: 'TemplateLiteral', | ||
ThisExpression: 'ThisExpression', | ||
ThrowStatement: 'ThrowStatement', | ||
TryStatement: 'TryStatement', | ||
UnaryExpression: 'UnaryExpression', | ||
UpdateExpression: 'UpdateExpression', | ||
VariableDeclaration: 'VariableDeclaration', | ||
VariableDeclarator: 'VariableDeclarator', | ||
WhileStatement: 'WhileStatement', | ||
WithStatement: 'WithStatement', | ||
YieldExpression: 'YieldExpression' | ||
}; | ||
const Syntax: { | ||
AssignmentExpression: "AssignmentExpression"; | ||
AssignmentPattern: "AssignmentPattern"; | ||
ArrayExpression: "ArrayExpression"; | ||
ArrayPattern: "ArrayPattern"; | ||
ArrowFunctionExpression: "ArrowFunctionExpression"; | ||
BlockStatement: "BlockStatement"; | ||
BinaryExpression: "BinaryExpression"; | ||
BreakStatement: "BreakStatement"; | ||
CallExpression: "CallExpression"; | ||
CatchClause: "CatchClause"; | ||
ClassBody: "ClassBody"; | ||
ClassDeclaration: "ClassDeclaration"; | ||
ClassExpression: "ClassExpression"; | ||
ConditionalExpression: "ConditionalExpression"; | ||
ContinueStatement: "ContinueStatement"; | ||
DoWhileStatement: "DoWhileStatement"; | ||
DebuggerStatement: "DebuggerStatement"; | ||
EmptyStatement: "EmptyStatement"; | ||
ExportAllDeclaration: "ExportAllDeclaration"; | ||
ExportDefaultDeclaration: "ExportDefaultDeclaration"; | ||
ExportNamedDeclaration: "ExportNamedDeclaration"; | ||
ExportSpecifier: "ExportSpecifier"; | ||
ExpressionStatement: "ExpressionStatement"; | ||
ForStatement: "ForStatement"; | ||
ForOfStatement: "ForOfStatement"; | ||
ForInStatement: "ForInStatement"; | ||
FunctionDeclaration: "FunctionDeclaration"; | ||
FunctionExpression: "FunctionExpression"; | ||
Identifier: "Identifier"; | ||
IfStatement: "IfStatement"; | ||
ImportDeclaration: "ImportDeclaration"; | ||
ImportDefaultSpecifier: "ImportDefaultSpecifier"; | ||
ImportNamespaceSpecifier: "ImportNamespaceSpecifier"; | ||
ImportSpecifier: "ImportSpecifier"; | ||
Literal: "Literal"; | ||
LabeledStatement: "LabeledStatement"; | ||
LogicalExpression: "LogicalExpression"; | ||
MemberExpression: "MemberExpression"; | ||
MetaProperty: "MetaProperty"; | ||
MethodDefinition: "MethodDefinition"; | ||
NewExpression: "NewExpression"; | ||
ObjectExpression: "ObjectExpression"; | ||
ObjectPattern: "ObjectPattern"; | ||
Program: "Program"; | ||
Property: "Property"; | ||
RestElement: "RestElement"; | ||
ReturnStatement: "ReturnStatement"; | ||
SequenceExpression: "SequenceExpression"; | ||
SpreadElement: "SpreadElement"; | ||
Super: "Super"; | ||
SwitchCase: "SwitchCase"; | ||
SwitchStatement: "SwitchStatement"; | ||
TaggedTemplateExpression: "TaggedTemplateExpression"; | ||
TemplateElement: "TemplateElement"; | ||
TemplateLiteral: "TemplateLiteral"; | ||
ThisExpression: "ThisExpression"; | ||
ThrowStatement: "ThrowStatement"; | ||
TryStatement: "TryStatement"; | ||
UnaryExpression: "UnaryExpression"; | ||
UpdateExpression: "UpdateExpression"; | ||
VariableDeclaration: "VariableDeclaration"; | ||
VariableDeclarator: "VariableDeclarator"; | ||
WhileStatement: "WhileStatement"; | ||
WithStatement: "WithStatement"; | ||
YieldExpression: "YieldExpression"; | ||
}; | ||
} |
{ | ||
"name": "@types/esprima", | ||
"version": "2.1.37", | ||
"version": "2.1.38", | ||
"description": "TypeScript definitions for Esprima", | ||
@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/esprima", | ||
}, | ||
"typesPublisherContentHash": "52dd22e5baa674ce2f2351f5d7b9769a352ce8703a0fce149d41bb549091e4e9", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "e7fd8b3d2b281d14d3c9ab1769064890ec8ab0e426d4cf8fb99b18bf026f5903", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 19:03:40 GMT | ||
* Last updated: Sat, 23 Sep 2023 17:07:22 GMT | ||
* Dependencies: [@types/estree](https://npmjs.com/package/@types/estree) | ||
@@ -14,0 +14,0 @@ * Global values: `esprima` |
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
6658