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
{{ message }}
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.
Some plugins like mongoose-schema-jsonschema are using extra properties defined on the options object, and it makes sense to me as well. @MaxGeorgeBlack I simply extended the PropOptions declaration to allow this:
// field with custom schema option
// add custom schema option to PropOptions
declare module 'typegoose/lib/prop' {
interface PropOptions {
customSchemaOption?: string
}
}
@hasezoey for this reason I recommend keeping the current way of forwarding the whole provided PropOptions object to mongoose and I would also either document how to extend the declaration or add [k:string]: any to the PropOptions declaration
In mongoose, I write one property with a label
name: { type: String, label: 'Customer name', max: 50, optional: true, },
But it seems that "label" is not supported in typegoose. Any solutions or ideas?
The text was updated successfully, but these errors were encountered: