addCase

addCase

Add an Enum Case.

await enumField.addCase({ name: "Bonus" })

Parameters

  • attributes: CreateEnumCase – An object representing the Enum Case.

    • name – The name of the Enum Case.

- Returns

  • Promise<EnumCase> – The added Enum Case.