Using Literal and String in Schema

Hi, which schema to use when i want Literal as well as string, something like reason: 'unknown' | 'not_authenticated' | (string & {}) so i will have typed literals but any value can be defined
Was this page helpful?