@types/estree
- Version 0.0.51
- Published
- 24 kB
- No dependencies
- MIT license
Install
npm i @types/estree
yarn add @types/estree
pnpm add @types/estree
Overview
TypeScript definitions for ESTree AST specification
Index
Interfaces
Type Aliases
Interfaces
interface ArrayExpression
interface ArrayExpression extends BaseExpression {}
interface ArrayPattern
interface ArrayPattern extends BasePattern {}
interface ArrowFunctionExpression
interface ArrowFunctionExpression extends BaseExpression, BaseFunction {}
property body
body: BlockStatement | Expression;
property expression
expression: boolean;
property type
type: 'ArrowFunctionExpression';
interface AssignmentExpression
interface AssignmentExpression extends BaseExpression {}
interface AssignmentPattern
interface AssignmentPattern extends BasePattern {}
interface AssignmentProperty
interface AssignmentProperty extends Property {}
interface AwaitExpression
interface AwaitExpression extends BaseExpression {}
interface BaseCallExpression
interface BaseCallExpression extends BaseExpression {}
interface BaseClass
interface BaseClass extends BaseNode {}
property body
body: ClassBody;
property superClass
superClass?: Expression | null | undefined;
interface BaseDeclaration
interface BaseDeclaration extends BaseStatement {}
interface BaseExpression
interface BaseExpression extends BaseNode {}
interface BaseForXStatement
interface BaseForXStatement extends BaseStatement {}
interface BaseFunction
interface BaseFunction extends BaseNode {}
interface BaseModuleDeclaration
interface BaseModuleDeclaration extends BaseNode {}
interface BaseModuleSpecifier
interface BaseModuleSpecifier extends BaseNode {}
property local
local: Identifier;
interface BaseNode
interface BaseNode extends BaseNodeWithoutComments {}
property leadingComments
leadingComments?: Array<Comment> | undefined;
property trailingComments
trailingComments?: Array<Comment> | undefined;
interface BaseNodeWithoutComments
interface BaseNodeWithoutComments {}
interface BasePattern
interface BasePattern extends BaseNode {}
interface BaseStatement
interface BaseStatement extends BaseNode {}
interface BigIntLiteral
interface BigIntLiteral extends BaseNode, BaseExpression {}
interface BinaryExpression
interface BinaryExpression extends BaseExpression {}
interface BlockStatement
interface BlockStatement extends BaseStatement {}
property body
body: Array<Statement>;
property innerComments
innerComments?: Array<Comment> | undefined;
property type
type: 'BlockStatement';
interface BreakStatement
interface BreakStatement extends BaseStatement {}
interface CatchClause
interface CatchClause extends BaseNode {}
interface ChainExpression
interface ChainExpression extends BaseExpression {}
property expression
expression: ChainElement;
property type
type: 'ChainExpression';
interface ClassBody
interface ClassBody extends BaseNode {}
interface ClassDeclaration
interface ClassDeclaration extends BaseClass, BaseDeclaration {}
interface ClassExpression
interface ClassExpression extends BaseClass, BaseExpression {}
interface Comment
interface Comment extends BaseNodeWithoutComments {}
interface ConditionalExpression
interface ConditionalExpression extends BaseExpression {}
property alternate
alternate: Expression;
property consequent
consequent: Expression;
property test
test: Expression;
property type
type: 'ConditionalExpression';
interface ContinueStatement
interface ContinueStatement extends BaseStatement {}
interface DebuggerStatement
interface DebuggerStatement extends BaseStatement {}
property type
type: 'DebuggerStatement';
interface Directive
interface Directive extends BaseNode {}
property directive
directive: string;
property expression
expression: Literal;
property type
type: 'ExpressionStatement';
interface DoWhileStatement
interface DoWhileStatement extends BaseStatement {}
interface EmptyStatement
interface EmptyStatement extends BaseStatement {}
property type
type: 'EmptyStatement';
interface ExportAllDeclaration
interface ExportAllDeclaration extends BaseModuleDeclaration {}
interface ExportDefaultDeclaration
interface ExportDefaultDeclaration extends BaseModuleDeclaration {}
property declaration
declaration: Declaration | Expression;
property type
type: 'ExportDefaultDeclaration';
interface ExportNamedDeclaration
interface ExportNamedDeclaration extends BaseModuleDeclaration {}
property declaration
declaration?: Declaration | null | undefined;
property source
source?: Literal | null | undefined;
property specifiers
specifiers: Array<ExportSpecifier>;
property type
type: 'ExportNamedDeclaration';
interface ExportSpecifier
interface ExportSpecifier extends BaseModuleSpecifier {}
interface ExpressionStatement
interface ExpressionStatement extends BaseStatement {}
property expression
expression: Expression;
property type
type: 'ExpressionStatement';
interface ForInStatement
interface ForInStatement extends BaseForXStatement {}
property type
type: 'ForInStatement';
interface ForOfStatement
interface ForOfStatement extends BaseForXStatement {}
interface ForStatement
interface ForStatement extends BaseStatement {}
interface FunctionDeclaration
interface FunctionDeclaration extends BaseFunction, BaseDeclaration {}
interface FunctionExpression
interface FunctionExpression extends BaseFunction, BaseExpression {}
interface Identifier
interface Identifier extends BaseNode, BaseExpression, BasePattern {}
interface IfStatement
interface IfStatement extends BaseStatement {}
property alternate
alternate?: Statement | null | undefined;
property consequent
consequent: Statement;
property test
test: Expression;
property type
type: 'IfStatement';
interface ImportDeclaration
interface ImportDeclaration extends BaseModuleDeclaration {}
property source
source: Literal;
property specifiers
specifiers: Array< ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>;
property type
type: 'ImportDeclaration';
interface ImportDefaultSpecifier
interface ImportDefaultSpecifier extends BaseModuleSpecifier {}
property type
type: 'ImportDefaultSpecifier';
interface ImportExpression
interface ImportExpression extends BaseExpression {}
interface ImportNamespaceSpecifier
interface ImportNamespaceSpecifier extends BaseModuleSpecifier {}
property type
type: 'ImportNamespaceSpecifier';
interface ImportSpecifier
interface ImportSpecifier extends BaseModuleSpecifier {}
interface LabeledStatement
interface LabeledStatement extends BaseStatement {}
interface LogicalExpression
interface LogicalExpression extends BaseExpression {}
interface MemberExpression
interface MemberExpression extends BaseExpression, BasePattern {}
interface MetaProperty
interface MetaProperty extends BaseExpression {}
interface MethodDefinition
interface MethodDefinition extends BaseNode {}
interface NewExpression
interface NewExpression extends BaseCallExpression {}
property type
type: 'NewExpression';
interface ObjectExpression
interface ObjectExpression extends BaseExpression {}
property properties
properties: Array<Property | SpreadElement>;
property type
type: 'ObjectExpression';
interface ObjectPattern
interface ObjectPattern extends BasePattern {}
property properties
properties: Array<AssignmentProperty | RestElement>;
property type
type: 'ObjectPattern';
interface Position
interface Position {}
interface PrivateIdentifier
interface PrivateIdentifier extends BaseNode {}
interface Program
interface Program extends BaseNode {}
property body
body: Array<Directive | Statement | ModuleDeclaration>;
property comments
comments?: Array<Comment> | undefined;
property sourceType
sourceType: 'script' | 'module';
property type
type: 'Program';
interface Property
interface Property extends BaseNode {}
interface PropertyDefinition
interface PropertyDefinition extends BaseNode {}
interface RegExpLiteral
interface RegExpLiteral extends BaseNode, BaseExpression {}
interface RestElement
interface RestElement extends BasePattern {}
interface ReturnStatement
interface ReturnStatement extends BaseStatement {}
interface SequenceExpression
interface SequenceExpression extends BaseExpression {}
property expressions
expressions: Array<Expression>;
property type
type: 'SequenceExpression';
interface SimpleCallExpression
interface SimpleCallExpression extends BaseCallExpression {}
interface SimpleLiteral
interface SimpleLiteral extends BaseNode, BaseExpression {}
interface SourceLocation
interface SourceLocation {}
interface SpreadElement
interface SpreadElement extends BaseNode {}
interface StaticBlock
interface StaticBlock extends Omit<BlockStatement, 'type'> {}
property type
type: 'StaticBlock';
interface SwitchCase
interface SwitchCase extends BaseNode {}
property consequent
consequent: Array<Statement>;
property test
test?: Expression | null | undefined;
property type
type: 'SwitchCase';
interface SwitchStatement
interface SwitchStatement extends BaseStatement {}
property cases
cases: Array<SwitchCase>;
property discriminant
discriminant: Expression;
property type
type: 'SwitchStatement';
interface TaggedTemplateExpression
interface TaggedTemplateExpression extends BaseExpression {}
interface TemplateElement
interface TemplateElement extends BaseNode {}
interface TemplateLiteral
interface TemplateLiteral extends BaseExpression {}
property expressions
expressions: Array<Expression>;
property quasis
quasis: Array<TemplateElement>;
property type
type: 'TemplateLiteral';
interface ThisExpression
interface ThisExpression extends BaseExpression {}
property type
type: 'ThisExpression';
interface ThrowStatement
interface ThrowStatement extends BaseStatement {}
interface TryStatement
interface TryStatement extends BaseStatement {}
interface UnaryExpression
interface UnaryExpression extends BaseExpression {}
interface UpdateExpression
interface UpdateExpression extends BaseExpression {}
interface VariableDeclaration
interface VariableDeclaration extends BaseDeclaration {}
property declarations
declarations: Array<VariableDeclarator>;
property kind
kind: 'var' | 'let' | 'const';
property type
type: 'VariableDeclaration';
interface VariableDeclarator
interface VariableDeclarator extends BaseNode {}
interface WhileStatement
interface WhileStatement extends BaseStatement {}
interface WithStatement
interface WithStatement extends BaseStatement {}
interface YieldExpression
interface YieldExpression extends BaseExpression {}
Type Aliases
type AssignmentOperator
type AssignmentOperator = | '=' | '+=' | '-=' | '*=' | '/=' | '%=' | '**=' | '<<=' | '>>=' | '>>>=' | '|=' | '^=' | '&=';
type BinaryOperator
type BinaryOperator = | '==' | '!=' | '===' | '!==' | '<' | '<=' | '>' | '>=' | '<<' | '>>' | '>>>' | '+' | '-' | '*' | '/' | '%' | '**' | '|' | '^' | '&' | 'in' | 'instanceof';
type CallExpression
type CallExpression = SimpleCallExpression | NewExpression;
type ChainElement
type ChainElement = SimpleCallExpression | MemberExpression;
type Class
type Class = ClassDeclaration | ClassExpression;
type Declaration
type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration;
type Expression
type Expression = | ThisExpression | ArrayExpression | ObjectExpression | FunctionExpression | ArrowFunctionExpression | YieldExpression | Literal | UnaryExpression | UpdateExpression | BinaryExpression | AssignmentExpression | LogicalExpression | MemberExpression | ConditionalExpression | CallExpression | NewExpression | SequenceExpression | TemplateLiteral | TaggedTemplateExpression | ClassExpression | MetaProperty | Identifier | AwaitExpression | ImportExpression | ChainExpression;
type Function
type Function = FunctionDeclaration | FunctionExpression | ArrowFunctionExpression;
type Literal
type Literal = SimpleLiteral | RegExpLiteral | BigIntLiteral;
type LogicalOperator
type LogicalOperator = '||' | '&&' | '??';
type ModuleDeclaration
type ModuleDeclaration = | ImportDeclaration | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration;
type ModuleSpecifier
type ModuleSpecifier = | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier;
type Node
type Node = | Identifier | Literal | Program | Function | SwitchCase | CatchClause | VariableDeclarator | Statement | Expression | PrivateIdentifier | Property | PropertyDefinition | AssignmentProperty | Super | TemplateElement | SpreadElement | Pattern | ClassBody | Class | MethodDefinition | ModuleDeclaration | ModuleSpecifier;
type Pattern
type Pattern = | Identifier | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | MemberExpression;
type Statement
type Statement = | ExpressionStatement | BlockStatement | StaticBlock | EmptyStatement | DebuggerStatement | WithStatement | ReturnStatement | LabeledStatement | BreakStatement | ContinueStatement | IfStatement | SwitchStatement | ThrowStatement | TryStatement | WhileStatement | DoWhileStatement | ForStatement | ForInStatement | ForOfStatement | Declaration;
type UnaryOperator
type UnaryOperator = '-' | '+' | '!' | '~' | 'typeof' | 'void' | 'delete';
type UpdateOperator
type UpdateOperator = '++' | '--';
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/estree
.
- Markdown[](https://www.jsdocs.io/package/@types/estree)
- HTML<a href="https://www.jsdocs.io/package/@types/estree"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3702 ms. - Missing or incorrect documentation? Open an issue for this package.