-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
We want to add a s.locale() schema method.
The type of the locale is a subtype of string: s.locale("en_us", "fr_fr") // type: "en_us" | "fr_fr"
NOTE: for optional locales, we're not sure yet. Perhaps: s.locale("en_us").optional("fr_fr"). The type for an optional would be the same as if the locale was not.
The intended way to use it will be:
- as keys on
s.record()(see Extend s.record to support key validation #384) - as properties on
s.object()(see Add .locale() method on s.object #386)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Todo