Skip to main content
Module

x/ts_morph/mod.ts>EnumMember#setValue

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

Sets the enum value.

This is a helper method. Use #setInitializer if you want to set the initializer to something other than a string or number.

Parameters

value: string | number
  • Enum value.