Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno2node/src/deps.deno.ts>ImportTypeNode

Compile your Deno project to run on Node.js.
Go to Latest
class ImportTypeNode
extends NodeWithTypeArguments<ts.ImportTypeNode>
import { ImportTypeNode } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Methods

Gets the argument passed into the import type.

Gets the import type assertion container if it exists.

getAssertionsOrThrow(message?: string | (() => string)): ImportTypeAssertionContainer

Gets the import type assertion 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.