Module

x/ts_morph/mod.ts>ImportTypeNode

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class ImportTypeNode
extends NodeWithTypeArguments<ts.ImportTypeNode>
import { ImportTypeNode } from "https://dotland.deno.dev/x/ts_morph@21.0.0/mod.ts";

Methods

Gets the argument passed into the import type.

Gets the import attributes container if it exists.

getAttributesOrThrow(message?: string | (() => string)): ImportAttributes

Gets the import attributes container if it exists or throws.

getParent(): NodeParentType<ts.ImportTypeNode>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.ImportTypeNode>>
getQualifier(): EntityName | undefined

Gets the qualifier of the import type if it exists or returns undefined.

getQualifierOrThrow(message?: string | (() => string)): EntityName

Gets the qualifier of the import type if it exists or throws

setArgument(text: string): this

Sets the argument text.

setQualifier(text: string): this

Sets the qualifier text.