UNPKG

@rxap/schematics-ts-morph

Version:

This package provides utilities for manipulating TypeScript code using ts-morph, particularly for Angular and NestJS projects. It offers functions to add, coerce, and modify code elements like classes, methods, decorators, and imports. The package also in

6 lines (5 loc) 473 B
import { OptionalKind, SourceFile, VariableDeclaration, VariableDeclarationStructure, VariableStatementStructure } from 'ts-morph'; /** * @deprecated import from @rxap/ts-morph */ export declare function CoerceVariableDeclaration(sourceFile: SourceFile, name: string, defaultDeclaration?: Omit<OptionalKind<VariableDeclarationStructure>, 'name'>, variableStatementStructure?: Partial<Omit<OptionalKind<VariableStatementStructure>, 'declarations'>>): VariableDeclaration;