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
I wonder what is the reason of the | any type for the keys of a MapSchema.
As the docs state, all values of a MapSchema should be of the same type. So there is no reason for having another type than T
As the MapSchema defines methods and has a list of properties attached to itself, the T | any is supposed to hold both the methods and the properties attached to it. The problem is that any is eager and everything is then treated as any.
I'm working on a fix along with a bunch of other issues here #75
I wonder what is the reason of the
| any
type for the keys of a MapSchema.As the docs state, all values of a MapSchema should be of the same type. So there is no reason for having another type than
T
schema/src/types/MapSchema.ts
Line 86 in 098f3dc
The text was updated successfully, but these errors were encountered: