Skip to content

Commit 424f133

Browse files
authored
chore(NODE-5323): update to typescript 5 (#3694)
1 parent f98f26c commit 424f133

File tree

169 files changed

+714
-531
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+714
-531
lines changed

.eslintrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@
8888
],
8989
"@typescript-eslint/no-explicit-any": "off",
9090
"@typescript-eslint/require-await": "off",
91+
"@typescript-eslint/consistent-type-imports": [
92+
"error",
93+
{
94+
"prefer": "type-imports",
95+
"disallowTypeAnnotations": false,
96+
"fixStyle": "inline-type-imports"
97+
}
98+
],
9199
"no-restricted-imports": [
92100
"error",
93101
{

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"devDependencies": {
5252
"@iarna/toml": "^2.2.5",
5353
"@istanbuljs/nyc-config-typescript": "^1.0.2",
54-
"@microsoft/api-extractor": "^7.34.8",
54+
"@microsoft/api-extractor": "^7.35.1",
5555
"@microsoft/tsdoc-config": "^0.16.2",
5656
"@mongodb-js/zstd": "^1.1.0",
5757
"@types/chai": "^4.3.5",
@@ -90,8 +90,8 @@
9090
"source-map-support": "^0.5.21",
9191
"standard-version": "^9.5.0",
9292
"ts-node": "^10.9.1",
93-
"tsd": "^0.27.0",
94-
"typescript": "^4.9.5",
93+
"tsd": "^0.28.1",
94+
"typescript": "^5.0.4",
9595
"typescript-cached-transpile": "^0.0.6",
9696
"v8-heapsnapshot": "^1.2.0",
9797
"yargs": "^17.7.2"

src/admin.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import type { Document } from './bson';
22
import type { Db } from './db';
3-
import { AddUserOperation, AddUserOptions } from './operations/add_user';
3+
import { AddUserOperation, type AddUserOptions } from './operations/add_user';
44
import type { CommandOperationOptions } from './operations/command';
55
import { executeOperation } from './operations/execute_operation';
66
import {
77
ListDatabasesOperation,
8-
ListDatabasesOptions,
9-
ListDatabasesResult
8+
type ListDatabasesOptions,
9+
type ListDatabasesResult
1010
} from './operations/list_databases';
11-
import { RemoveUserOperation, RemoveUserOptions } from './operations/remove_user';
12-
import { RunCommandOperation, RunCommandOptions } from './operations/run_command';
11+
import { RemoveUserOperation, type RemoveUserOptions } from './operations/remove_user';
12+
import { RunCommandOperation, type RunCommandOptions } from './operations/run_command';
1313
import {
1414
ValidateCollectionOperation,
15-
ValidateCollectionOptions
15+
type ValidateCollectionOptions
1616
} from './operations/validate_collection';
1717

1818
/** @internal */

0 commit comments

Comments
 (0)