full site update
This commit is contained in:
23
node_modules/acorn/dist/acorn.d.ts
generated
vendored
23
node_modules/acorn/dist/acorn.d.ts
generated
vendored
@@ -169,7 +169,7 @@ export interface FunctionDeclaration extends Function {
|
||||
export interface VariableDeclaration extends Node {
|
||||
type: "VariableDeclaration"
|
||||
declarations: Array<VariableDeclarator>
|
||||
kind: "var" | "let" | "const"
|
||||
kind: "var" | "let" | "const" | "using" | "await using"
|
||||
}
|
||||
|
||||
export interface VariableDeclarator extends Node {
|
||||
@@ -572,7 +572,24 @@ export type ModuleDeclaration =
|
||||
| ExportDefaultDeclaration
|
||||
| ExportAllDeclaration
|
||||
|
||||
export type AnyNode = Statement | Expression | Declaration | ModuleDeclaration | Literal | Program | SwitchCase | CatchClause | Property | Super | SpreadElement | TemplateElement | AssignmentProperty | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | ClassBody | MethodDefinition | MetaProperty | ImportAttribute | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier | AnonymousFunctionDeclaration | AnonymousClassDeclaration | PropertyDefinition | PrivateIdentifier | StaticBlock | VariableDeclarator
|
||||
/**
|
||||
* This interface is only used for defining {@link AnyNode}.
|
||||
* It exists so that it can be extended by plugins:
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* declare module 'acorn' {
|
||||
* interface NodeTypes {
|
||||
* pluginName: FirstNode | SecondNode | ThirdNode | ... | LastNode
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
interface NodeTypes {
|
||||
core: Statement | Expression | Declaration | ModuleDeclaration | Literal | Program | SwitchCase | CatchClause | Property | Super | SpreadElement | TemplateElement | AssignmentProperty | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | ClassBody | MethodDefinition | MetaProperty | ImportAttribute | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier | AnonymousFunctionDeclaration | AnonymousClassDeclaration | PropertyDefinition | PrivateIdentifier | StaticBlock | VariableDeclarator
|
||||
}
|
||||
|
||||
export type AnyNode = NodeTypes[keyof NodeTypes]
|
||||
|
||||
export function parse(input: string, options: Options): Program
|
||||
|
||||
@@ -583,7 +600,7 @@ export function tokenizer(input: string, options: Options): {
|
||||
[Symbol.iterator](): Iterator<Token>
|
||||
}
|
||||
|
||||
export type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | "latest"
|
||||
export type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | 2026 | "latest"
|
||||
|
||||
export interface Options {
|
||||
/**
|
||||
|
Reference in New Issue
Block a user