Skip to content

Commit 7faa2c5

Browse files
committed
effect-mongodb - MongoClient: export MongoClientScopedOptions type (#37)
1 parent e3b926e commit 7faa2c5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/tender-jeans-shake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"effect-mongodb": patch
3+
---
4+
5+
Export `MongoClient.connectScoped` options type `MongoClientScopedOptions`

packages/effect-mongodb/src/MongoClient.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ export const close: {
3030
)
3131
)
3232

33+
export type MongoClientScopedOptions = MongoClientOptions & { forceClose?: boolean }
34+
3335
export const connectScoped = (
3436
url: string,
35-
options?: MongoClientOptions & { forceClose?: boolean }
37+
options?: MongoClientScopedOptions
3638
): Effect.Effect<MongoClient, MongoError.MongoError, Scope.Scope> =>
3739
Effect.acquireRelease(
3840
connect(url, options),

0 commit comments

Comments
 (0)