-
-
Notifications
You must be signed in to change notification settings - Fork 797
Closed
Description
Steps to reproduce
When creating a Enum you are able to provide a default value.
status: Type.Enum(TRANSACTION_STATUS, { default: TRANSACTION_STATUS.INCOMPLETE }),But when creating a StringEnum you do not have that option available.
status: StringEnum(['INCOMPLETE', 'COMPLETED', 'CANCELLED', 'APPROVED', 'DECLINED'])Expected behavior
I would like this to work
status: StringEnum(['INCOMPLETE', 'COMPLETED', 'CANCELLED', 'APPROVED', 'DECLINED'], {
default: 'COMPLETED'
}),I can provide a PR for my suggestion to a fix
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels