diff --git a/packages/effect-mongodb/src/FindCursor.ts b/packages/effect-mongodb/src/FindCursor.ts index f8ae65d..da45085 100644 --- a/packages/effect-mongodb/src/FindCursor.ts +++ b/packages/effect-mongodb/src/FindCursor.ts @@ -20,19 +20,18 @@ export class FindCursor extends Data.TaggedClass("FindCurso } export const filter: { - // TODO: T should be I type parameter - ( - filter: Filter - ): (cursor: FindCursor) => FindCursor - ( + ( + filter: Filter + ): (cursor: FindCursor) => FindCursor + ( cursor: FindCursor, - filter: Filter + filter: Filter ): FindCursor } = F.dual( (args) => isFindCursor(args[0]), - ( + ( cursor: FindCursor, - filter: Filter + filter: Filter ): FindCursor => new FindCursor({ cursor: cursor.cursor.filter(filter), schema: cursor.schema }) )