Potential TS enhancement?
Opened this issue · 0 comments
ineshbose commented
Could we use a generic here-
Line 4 in a98cf75
export function defineUntypedSchema<T extends SchemaDefinition>(options: T)
Otherwise I don't believe the return value to be strongly-typed; plus I may want to provide the generic explicitly and make sure that options
corresponds to it (with appropriate $resolve
functions, etc).