From 9d91db3652b3e954966b87fd4a714468c470a2d7 Mon Sep 17 00:00:00 2001 From: daffl Date: Tue, 3 Oct 2023 12:09:03 -0700 Subject: [PATCH] docs: Add StringEnum options docs --- docs/api/schema/typebox.md | 4 ++++ 1 file changed, 4 insertions(+) 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: