JSClassBuilder<T>.DefineEnum method
Creates a JS Object for a TypeScript-style enumeration. The object has readonly integer properties along with a reverse number-to-string mapping.
C#
public JSValue DefineEnum()
See Also
- struct JSValue
- class JSClassBuilder<T>
- namespace Microsoft.JavaScript.NodeApi.Interop