Skip to main content
Module

x/ts_morph/ts_morph.d.ts>ImportAttributes

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

Methods

Gets the elements of the import attributes.

getParent(): NodeParentType<ts.ImportAttributes>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.ImportAttributes>>
remove(): void

Removes the assert clause.

setElements(elements: ReadonlyArray<OptionalKind<ImportAttributeStructure>>): this

Sets the elements in the import attributes