diff --git a/docs/api/schema/typebox.md b/docs/api/schema/typebox.md index 24e869c2b6..30427aaa97 100644 --- a/docs/api/schema/typebox.md +++ b/docs/api/schema/typebox.md @@ -874,6 +874,10 @@ const T = { import { StringEnum } from '@feathersjs/typebox' const T = StringEnum(['crow', 'dove', 'eagle']) +// Add additional options +const T = StringEnum(['crow', 'dove', 'eagle'], { + default: 'crow' +}) ``` To obtain the TypeScript type, use the `Static` utility: