'ADMIN' | 'GUEST'. You can create string literals using combination of
Storytype is not as clean as it might be. Jasse Hallett in his article proposed a slightly different approach to defining optional values in validator schemas. Lets define a handy
undefined. In practice, that distinction often does not matter, and io-ts will validate an object that is missing a required property if the type of that property is allowed to be
Storydefinition can be much more cleaner and readable.