You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportenumLoggerKind{console,file}interfaceILogger{kind: LoggerKind}interfaceLoggerConsoleextendsILogger{kind: LoggerKind.console}interfaceLoggerFileextendsILogger{kind: LoggerKind.filefilename: string}/** * @tag kind */// NB: treat the following as discriminatedUnionexporttypeLogger=LoggerConsole|LoggerFile
NB: may be better to directly mark ILogger field as discriminator?
Feature description
I would like to discuss whether the following features are feasible to have in the mainstream:
jsdoc tag to apply
.coerce
to the schemaInput
Output
NB: may be generalized as the following
jsdoc tag override schema definition
Input
Output
support z.enum() for simple text enums
Input
Output
jsdoc tag for discriminatedUnion
Input
NB: may be better to directly mark
ILogger
field as discriminator?Output
support Deno style imports (".ts")
Output
support output file header template
Say, via a
--header file.ts
command line optionOutput
TIA
The text was updated successfully, but these errors were encountered: