Skip to main content
Module

x/ts_morph/mod.ts>TypePredicateNode#getTypeNodeOrThrow

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

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

Parameters

optional
message: string | (() => string)