(
modelCtor: Function & {prototype: T},
options?: JsonSchemaOptions<T>,
)
| 562 | * @param options - Additional options |
| 563 | */ |
| 564 | export function getModelSchemaRef<T extends object>( |
| 565 | modelCtor: Function & {prototype: T}, |
| 566 | options?: JsonSchemaOptions<T>, |
| 567 | ): SchemaRef { |
| 568 | const jsonSchema = getJsonSchemaRef(modelCtor, options); |
| 569 | return jsonToSchemaObject(jsonSchema) as SchemaRef; |
| 570 | } |