@types/estree
- Version 1.0.6
- Published
- 25.8 kB
- No dependencies
- MIT license
Install
npm i @types/estree
yarn add @types/estree
pnpm add @types/estree
Overview
TypeScript definitions for estree
Index
Interfaces
ExpressionMap
- ArrayExpression
- ArrowFunctionExpression
- AssignmentExpression
- AwaitExpression
- BinaryExpression
- CallExpression
- ChainExpression
- ClassExpression
- ConditionalExpression
- FunctionExpression
- Identifier
- ImportExpression
- Literal
- LogicalExpression
- MemberExpression
- MetaProperty
- NewExpression
- ObjectExpression
- SequenceExpression
- TaggedTemplateExpression
- TemplateLiteral
- ThisExpression
- UnaryExpression
- UpdateExpression
- YieldExpression
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?: Comment[] | undefined;
property trailingComments
trailingComments?: 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: Statement[];
property innerComments
innerComments?: 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 MaybeNamedClassDeclaration {}
property id
id: Identifier;
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: | MaybeNamedFunctionDeclaration | MaybeNamedClassDeclaration | 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: ExportSpecifier[];
property type
type: 'ExportNamedDeclaration';
interface ExportSpecifier
interface ExportSpecifier extends Omit<BaseModuleSpecifier, 'local'> {}
interface ExpressionMap
interface ExpressionMap {}
property ArrayExpression
ArrayExpression: ArrayExpression;
property ArrowFunctionExpression
ArrowFunctionExpression: ArrowFunctionExpression;
property AssignmentExpression
AssignmentExpression: AssignmentExpression;
property AwaitExpression
AwaitExpression: AwaitExpression;
property BinaryExpression
BinaryExpression: BinaryExpression;
property CallExpression
CallExpression: CallExpression;
property ChainExpression
ChainExpression: ChainExpression;
property ClassExpression
ClassExpression: ClassExpression;
property ConditionalExpression
ConditionalExpression: ConditionalExpression;
property FunctionExpression
FunctionExpression: FunctionExpression;
property Identifier
Identifier: Identifier;
property ImportExpression
ImportExpression: ImportExpression;
property Literal
Literal: Literal;
property LogicalExpression
LogicalExpression: LogicalExpression;
property MemberExpression
MemberExpression: MemberExpression;
property MetaProperty
MetaProperty: MetaProperty;
property NewExpression
NewExpression: NewExpression;
property ObjectExpression
ObjectExpression: ObjectExpression;
property SequenceExpression
SequenceExpression: SequenceExpression;
property TaggedTemplateExpression
TaggedTemplateExpression: TaggedTemplateExpression;
property TemplateLiteral
TemplateLiteral: TemplateLiteral;
property ThisExpression
ThisExpression: ThisExpression;
property UnaryExpression
UnaryExpression: UnaryExpression;
property UpdateExpression
UpdateExpression: UpdateExpression;
property YieldExpression
YieldExpression: YieldExpression;
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 MaybeNamedFunctionDeclaration {}
property id
id: Identifier;
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 MaybeNamedClassDeclaration
interface MaybeNamedClassDeclaration extends BaseClass, BaseDeclaration {}
interface MaybeNamedFunctionDeclaration
interface MaybeNamedFunctionDeclaration extends BaseFunction, BaseDeclaration {}
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 NodeMap
interface NodeMap {}
property AssignmentProperty
AssignmentProperty: AssignmentProperty;
property CatchClause
CatchClause: CatchClause;
property Class
Class: Class;
property ClassBody
ClassBody: ClassBody;
property Expression
Expression: Expression;
property Function
Function: Function;
property Identifier
Identifier: Identifier;
property Literal
Literal: Literal;
property MethodDefinition
MethodDefinition: MethodDefinition;
property ModuleDeclaration
ModuleDeclaration: ModuleDeclaration;
property ModuleSpecifier
ModuleSpecifier: ModuleSpecifier;
property Pattern
Pattern: Pattern;
property PrivateIdentifier
PrivateIdentifier: PrivateIdentifier;
property Program
Program: Program;
property Property
Property: Property;
property PropertyDefinition
PropertyDefinition: PropertyDefinition;
property SpreadElement
SpreadElement: SpreadElement;
property Statement
Statement: Statement;
property Super
Super: Super;
property SwitchCase
SwitchCase: SwitchCase;
property TemplateElement
TemplateElement: TemplateElement;
property VariableDeclarator
VariableDeclarator: VariableDeclarator;
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?: 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: 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: Statement[];
property test
test?: Expression | null | undefined;
property type
type: 'SwitchCase';
interface SwitchStatement
interface SwitchStatement extends BaseStatement {}
property cases
cases: 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: Expression[];
property quasis
quasis: 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: 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 = ExpressionMap[keyof ExpressionMap];
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 = NodeMap[keyof NodeMap];
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[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](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 6347 ms. - Missing or incorrect documentation? Open an issue for this package.