Skip to content

Commit

Permalink
docs: Add StringEnum options docs (#3295)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl authored Oct 3, 2023
1 parent 25af09a commit 9740c64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api/schema/typebox.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9740c64

Please sign in to comment.