Skip to main content
Module

x/ts_morph/ts_morph.d.ts>ImportAttribute

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
class ImportAttribute
extends ImportAttributeBase<ts.ImportAttribute>
import { ImportAttribute } from "https://deno.land/x/ts_morph@22.0.0/ts_morph.d.ts";

Methods

getParent(): NodeParentType<ts.ImportAttribute>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.ImportAttribute>>
getStructure(): ImportAttributeStructure

Gets the structure equivalent to this node.

getValue(): Expression

Gets the value of the assert entry.

set(structure: Partial<ImportAttributeStructure>): this

Sets the name and value.