Module

x/ts_morph/mod.ts>ImportAttributes

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class ImportAttributes
extends ImportAttributesBase<ts.ImportAttributes>
import { ImportAttributes } from "https://dotland.deno.dev/x/ts_morph@21.0.0/mod.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