Skip to main content
Module

x/ts_morph/mod.ts>TypedNode

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface TypedNode
import { type TypedNode } from "https://deno.land/x/ts_morph@15.1.0/mod.ts";

Methods

getTypeNode(): TypeNode | undefined

Gets the type node or undefined if none exists.

getTypeNodeOrThrow(): TypeNode

Gets the type node or throws if none exists.

setType(textOrWriterFunction: string | WriterFunction): this

Sets the type.

removeType(): this

Removes the type.

function TypedNode
import { TypedNode } from "https://deno.land/x/ts_morph@15.1.0/mod.ts";

Type Parameters

T extends Constructor<TypedNodeExtensionType>