Skip to main content
Module

x/ts_morph/ts_morph.d.ts>TypePredicateNode#getAssertsModifierOrThrow

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

Gets the asserts modifier if it exists or throws otherwise.

Parameters

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

Returns

Node<ts.AssertsKeyword>