Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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@20.0.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.