Skip to content

Commit 926e37f

Browse files
committed
use type-export from mongodb-schema
1 parent a5ac33c commit 926e37f

File tree

6 files changed

+12
-444
lines changed

6 files changed

+12
-444
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/mongodb-ts-autocomplete/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"eslint": "^7.25.0",
6464
"gen-esm-wrapper": "^1.1.1",
6565
"mocha": "^8.4.0",
66-
"mongodb-schema": "^12.5.0",
66+
"mongodb-schema": "^12.6.2",
6767
"node-cache": "^5.1.2",
6868
"nyc": "^15.1.0",
6969
"prettier": "^3.5.3",

packages/mongodb-ts-autocomplete/src/autocompletion-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import NodeCache from 'node-cache';
22

3-
import type { JSONSchema } from './type-export';
3+
import type { JSONSchema } from 'mongodb-schema';
44

55
type CacheOptions = {
66
databaseCollectionsTTL: number;

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type {
55
} from '@mongodb-js/ts-autocomplete';
66
import autocompleteTypes from './fixtures/autocomplete-types';
77

8-
import type { JSONSchema } from './type-export';
9-
import { toTypescriptTypeDefinition } from './type-export';
8+
import type { JSONSchema } from 'mongodb-schema';
9+
import { toTypescriptTypeDefinition } from 'mongodb-schema';
1010

1111
import {
1212
inferCollectionNameFromFunctionCall,
@@ -16,7 +16,6 @@ import {
1616
import { CachingAutocompletionContext } from './autocompletion-context';
1717
import type { AutocompletionContext } from './autocompletion-context';
1818

19-
export { JSONSchema } from './type-export';
2019
export { AutocompletionContext } from './autocompletion-context';
2120

2221
type MongoDBAutocompleterOptions = {

packages/mongodb-ts-autocomplete/src/type-export.spec.ts

Lines changed: 0 additions & 281 deletions
This file was deleted.

0 commit comments

Comments
 (0)