-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The meta and bsonSchema instance properties are immutable, as are schemas in general. The types. however, do not correctly reflect the mutability of everything. The desired behavior is as follows:
metaandbsonSchemaproperties are readonly, as are all nested properties- attempting to set
metaorbsonSchema, or assign to any nested property, should be prevented by TypeScript - The parse result types inferred by
B.Typeshould NOT be readonly - An object schema built from another object schema's
meta.shapeproperty should behave and be typed just like a default instance of the original schema - There should be as few
readonlyorReadonly<>repetitions in the tooltip as is necessary to achieve the above goals
It may be necessary to create Meta and BsonSchema classes to achieve this in a way that is both type-safe and ergonomic.
Metadata
Metadata
Assignees
Labels
No labels