Skip to content

Commit e8b1c41

Browse files
committed
I think the bson expressions would just be global and not namespaced
1 parent 84577fe commit e8b1c41

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

packages/mongodb-ts-autocomplete/src/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('MongoDBAutocompleter', function () {
5757
{
5858
kind: 'function',
5959
name: 'ObjectId',
60-
type: 'ShellAPI.ObjectId',
60+
type: 'ObjectId',
6161
},
6262
]);
6363
});
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
export {}; // turns this into an "external module"
22

33
declare global {
4-
namespace ShellAPI {
5-
export type ObjectId = {
6-
toString: () => string;
7-
};
8-
}
4+
export type ObjectId = {
5+
toString: () => string;
6+
};
97

10-
export function ObjectId(id: string): ShellAPI.ObjectId;
8+
export function ObjectId(id: string): ObjectId;
119
}

0 commit comments

Comments
 (0)