Skip to main content
Module

x/ts_morph/mod.ts>TypePredicateNode#getTypeNode

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

Gets the type name if it exists or returns undefined when it asserts a condition.

Returns

TypeNode | undefined