No overload matches this call.
The last overload gave the following error.
Argument of type 'CollectionConfig<Record<string, unknown>, string | number, { id?: string | undefined; }, UtilsRecord> & { schema: { id?: string | undefined; }; utils: QueryCollectionUtils<...>; }' is not assignable to parameter of type 'CollectionConfig<Record<string, unknown>, string | number, never, UtilsRecord> & { schema?: undefined; utils?: (UtilsRecord & QueryCollectionUtils<...>) | undefined; } & SingleResult'.
Type 'CollectionConfig<Record<string, unknown>, string | number, { id?: string | undefined; }, UtilsRecord> & { schema: { id?: string | undefined; }; utils: QueryCollectionUtils<...>; }' is not assignable to type 'CollectionConfig<Record<string, unknown>, string | number, never, UtilsRecord>'.
Types of property 'schema' are incompatible.
Type '{ id?: string | undefined; }' is not assignable to type 'undefined'.ts(2769)
index.d.ts(106, 25): The last overload is declared here.
⚠ Error (TS2769) | No overload matches this call.
No overload matches this call.
The last overload gave the following error.
Argument of type 'CollectionConfig<Record<string, unknown>, string | number, { id?: string | undefined; }, UtilsRecord> & { schema: { id?: string | undefined; }; utils: QueryCollectionUtils<...>; }' is not assignable to parameter of type 'CollectionConfig<Record<string, unknown>, string | number, never, UtilsRecord> & { schema?: undefined; utils?: (UtilsRecord & QueryCollectionUtils<...>) | undefined; } & SingleResult'.
Type 'CollectionConfig<Record<string, unknown>, string | number, { id?: string | undefined; }, UtilsRecord> & { schema: { id?: string | undefined; }; utils: QueryCollectionUtils<...>; }' is not assignable to type 'CollectionConfig<Record<string, unknown>, string | number, never, UtilsRecord>'.
Types of property 'schema' are incompatible.
Type '{ id?: string | undefined; }' is not assignable to type 'undefined'.ts(2769)
index.d.ts(106, 25): The last overload is declared here.
⚠ Error (TS2769) | No overload matches this call.