We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 699829e commit 12a69e3Copy full SHA for 12a69e3
1 file changed
src/type/engine/template-literal/is-finite.ts
@@ -74,8 +74,8 @@ type TFromType<Type extends TSchema> =
74
function FromType<Type extends TSchema>(type: Type): TFromType<Type> {
75
return (
76
IsUnion(type) ? FromTypes(type.anyOf) :
77
- IsLiteral(type) ? FromLiteral(type.const) :
78
- false
+ IsLiteral(type) ? FromLiteral(type.const) :
+ false
79
) as never
80
}
81
// ------------------------------------------------------------------
0 commit comments