The result of the enum.
The expected options of the enum.
Whether the enum value is optional.
Readonly
optionsThe expected options of the enum.
Readonly
resultThe result of the enum.
Static
Readonly
defaultStatic
Readonly
enumsStatic
Readonly
identifierThe type of the enum.
Static
Readonly
optionsThe options of the enum.
Static
Readonly
strictWhether the enum is strict to its options.
Static
Readonly
symbolThe symbol of the enum.
Static
Readonly
typeThe type of the enum.
Validates if the result is a valid option.
Whether to throw an error if the result is not a valid option.
Returns true
if the result is a valid option, or false
otherwise.
Static
extractReads the next value from the pointer.
The pointer to read from.
The constructor of the enum.