Skip to content

Commit e2f490b

Browse files
committed
fix(db): restore createCollection implementation typing
1 parent 7e7b7ac commit e2f490b

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

packages/db/src/collection/index.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,7 @@ export function createCollection(
269269
schema?: StandardSchemaV1
270270
},
271271
): Collection<any, string | number, UtilsRecord, any, any> {
272-
const collection = new CollectionImpl<any, string | number, any, any, any>(
273-
options,
274-
)
272+
const collection = new CollectionImpl(options)
275273

276274
// Attach utils to collection
277275
if (options.utils) {
@@ -280,13 +278,7 @@ export function createCollection(
280278
collection.utils = {}
281279
}
282280

283-
return collection as unknown as Collection<
284-
any,
285-
string | number,
286-
UtilsRecord,
287-
any,
288-
any
289-
>
281+
return collection
290282
}
291283

292284
export class CollectionImpl<

0 commit comments

Comments
 (0)