chore: change default type

This commit is contained in:
Florian Bouillon 2025-03-25 14:00:14 +01:00
parent 18aa6c8300
commit 8d6e9d61a1
Signed by: Florian Bouillon
GPG Key ID: 7676FF78F3BC40EC

View File

@ -6,7 +6,7 @@ type ModelInfer<M extends Record<string, SchemaItem>> = {
[key in keyof M]: SchemaInfer<M[key]>
}
export default class SchemaObject<T extends Record<string, SchemaItem> = Record<string, SchemaItem>> extends SchemaItem<ModelInfer<T>> {
export default class SchemaObject<T extends Record<string, SchemaItem> = any> extends SchemaItem<ModelInfer<T>> {
public id = 'object'
public constructor(public readonly model: T) {