Skip to main content
Module

x/deno2node/src/deps.deno.ts>VariableDeclarationList

Compile your Deno project to run on Node.js.
Go to Latest
class VariableDeclarationList
extends VariableDeclarationListBase<ts.VariableDeclarationList>
import { VariableDeclarationList } from "https://deno.land/x/deno2node@v1.6.0/src/deps.deno.ts";

Methods

addDeclaration(structure: OptionalKind<VariableDeclarationStructure>): VariableDeclaration

Add a variable declaration to the statement.

addDeclarations(structures: ReadonlyArray<OptionalKind<VariableDeclarationStructure>>): VariableDeclaration[]

Adds variable declarations to the statement.

getDeclarationKind(): VariableDeclarationKind

Gets the variable declaration kind.

Gets the variable declaration kind keyword.

getDeclarations(): VariableDeclaration[]

Get the variable declarations.

getParent(): NodeParentType<ts.VariableDeclarationList>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.VariableDeclarationList>>
insertDeclaration(index: number, structure: OptionalKind<VariableDeclarationStructure>): VariableDeclaration

Inserts a variable declaration at the specified index within the statement.

insertDeclarations(index: number, structures: ReadonlyArray<OptionalKind<VariableDeclarationStructure>>): VariableDeclaration[]

Inserts variable declarations at the specified index within the statement.

setDeclarationKind(type: VariableDeclarationKind): this

Sets the variable declaration kind.