Skip to main content
Module

x/ts_morph/mod.ts>Type#getPropertyOrThrow

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

Gets a property or throws if it doesn't exist.

Parameters

name: string
  • By a name.

Gets a property or throws if it doesn't exist.

Parameters

findFunction: (declaration: Symbol) => boolean
  • Function for searching for a property.