UNPKG

@spec2ts/core

Version:

Core module for @spec2ts modules, includes codegen helpers and common parsing methods

5 lines (4 loc) 508 B
import * as ts from "typescript"; export declare function findFirstVariableStatement(nodes: ts.NodeArray<ts.Node>, variableName: string): ts.VariableStatement | undefined; export declare function updateVariableStatementValue(statement: ts.VariableStatement, variableName: string, value: ts.Expression): ts.VariableStatement; export declare function updateVariableStatementPropertyValue(statement: ts.VariableStatement, variableName: string, propertyName: string, value: ts.Expression): ts.VariableStatement;