Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ts_morph/ts_morph.d.ts>EnumDeclaration#getMemberOrThrow

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

Gets an enum member or throws if not found.

Parameters

name: string
  • Name of the member.

Gets an enum member or throws if not found.

Parameters

findFunction: (declaration: EnumMember) => boolean
  • Function to use to find the member.