Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(NODE-5323): update to typescript 5 #3694

Merged
merged 5 commits into from
Jun 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/consistent-type-imports": [
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the new rule replacing the deprecated importsNotUsedAsValues typescript config.

"error",
{
"prefer": "type-imports",
"disallowTypeAnnotations": false,
"fixStyle": "inline-type-imports"
}
],
"no-restricted-imports": [
"error",
{
Expand Down
167 changes: 119 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"devDependencies": {
"@iarna/toml": "^2.2.5",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@microsoft/api-extractor": "^7.34.8",
"@microsoft/api-extractor": "^7.35.1",
"@microsoft/tsdoc-config": "^0.16.2",
"@mongodb-js/zstd": "^1.1.0",
"@types/chai": "^4.3.5",
Expand Down Expand Up @@ -90,8 +90,8 @@
"source-map-support": "^0.5.21",
"standard-version": "^9.5.0",
"ts-node": "^10.9.1",
"tsd": "^0.27.0",
"typescript": "^4.9.5",
"tsd": "^0.28.1",
"typescript": "^5.0.4",
"typescript-cached-transpile": "^0.0.6",
"v8-heapsnapshot": "^1.2.0",
"yargs": "^17.7.2"
Expand Down
12 changes: 6 additions & 6 deletions src/admin.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import type { Document } from './bson';
import type { Db } from './db';
import { AddUserOperation, AddUserOptions } from './operations/add_user';
import { AddUserOperation, type AddUserOptions } from './operations/add_user';
import type { CommandOperationOptions } from './operations/command';
import { executeOperation } from './operations/execute_operation';
import {
ListDatabasesOperation,
ListDatabasesOptions,
ListDatabasesResult
type ListDatabasesOptions,
type ListDatabasesResult
} from './operations/list_databases';
import { RemoveUserOperation, RemoveUserOptions } from './operations/remove_user';
import { RunCommandOperation, RunCommandOptions } from './operations/run_command';
import { RemoveUserOperation, type RemoveUserOptions } from './operations/remove_user';
import { RunCommandOperation, type RunCommandOptions } from './operations/run_command';
import {
ValidateCollectionOperation,
ValidateCollectionOptions
type ValidateCollectionOptions
} from './operations/validate_collection';

/** @internal */
Expand Down
Loading