Fix tNormalizedNullOptional formatting in schema view in docs
This commit is contained in:
parent
b62a6685e0
commit
0a8239996a
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,8 @@ function formatConfigSchema(schema) {
|
|||
} else if (schema._tag === "UnionType") {
|
||||
if (schema.name.startsWith("Nullable<")) {
|
||||
return `Nullable<${formatConfigSchema(schema.types[0])}>`;
|
||||
} else if (schema.name.startsWith("Optional<")) {
|
||||
return `Optional<${formatConfigSchema(schema.types[0])}>`;
|
||||
} else {
|
||||
return schema.types.map(t => formatConfigSchema(t)).join(" | ");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue