Skip to main content
Module

x/ts_morph/mod.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@15.1.0/mod.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.