Skip to main content
Module

x/ts_morph/ts_morph.d.ts>AssertClause

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class AssertClause
extends AssertClauseBase<ts.AssertClause>
import { AssertClause } from "https://deno.land/x/ts_morph@17.0.0/ts_morph.d.ts";

Methods

Gets the elements of the assert clause.

getParent(): NodeParentType<ts.AssertClause>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.AssertClause>>
remove(): void

Removes the assert clause.

setElements(elements: ReadonlyArray<OptionalKind<AssertEntryStructure>>): this

Sets the elements in the assert clause