Skip to content

Commit 57f9376

Browse files
committed
remove @ts-expect-error annotation, annotate type import
1 parent 867b002 commit 57f9376

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/compass-collection/src/modules/collection-tab.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
type SchemaAnalysisError,
2828
type SchemaAnalysisState,
2929
type FieldInfo,
30-
MongoDBFieldType,
30+
type MongoDBFieldType,
3131
} from '../schema-analysis-types';
3232
import { calculateSchemaDepth } from '../calculate-schema-depth';
3333
import {
@@ -42,7 +42,6 @@ import type {
4242
MockDataGeneratorState,
4343
} from '../components/mock-data-generator-modal/types';
4444

45-
// @ts-expect-error TypeScript warns us about importing ESM module from CommonJS module, but we can ignore since this code will be consumed by webpack.
4645
import { faker } from '@faker-js/faker/locale/en';
4746

4847
const DEFAULT_SAMPLE_SIZE = 100;

0 commit comments

Comments
 (0)