Skip to content

Commit 01e3ccb

Browse files
committed
Update type names
1 parent 574dd9f commit 01e3ccb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: test/tools/unified-spec-runner/schema.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type {
77
ServerApiVersion,
88
SeverityLevel,
99
TagSet,
10-
TopologyType as EventTopologyType,
10+
TopologyType,
1111
W
1212
} from '../../mongodb';
1313
import { type TestConfiguration } from '../runner/config';
@@ -96,15 +96,15 @@ export interface UnifiedSuite {
9696
tests: Test[];
9797
_yamlAnchors?: Document;
9898
}
99-
export const TopologyType = Object.freeze({
99+
export const TopologyId = Object.freeze({
100100
single: 'single',
101101
replicaset: 'replicaset',
102102
sharded: 'sharded',
103103
shardedReplicaset: 'sharded-replicaset',
104104
loadBalanced: 'load-balanced'
105105
} as const);
106106

107-
export type TopologyId = (typeof TopologyType)[keyof typeof TopologyType];
107+
export type TopologyId = (typeof TopologyId)[keyof typeof TopologyId];
108108
export interface RunOnRequirement {
109109
serverless?: 'forbid' | 'allow' | 'require';
110110
auth?: boolean;
@@ -338,10 +338,10 @@ export interface ExpectedSdamEvent {
338338
topologyDescriptionChangedEvent?: {
339339
topologyId?: any;
340340
previousDescription?: {
341-
type?: EventTopologyType;
341+
type?: TopologyType;
342342
};
343343
newDescription?: {
344-
type?: EventTopologyType;
344+
type?: TopologyType;
345345
};
346346
};
347347
topologyOpeningEvent?: {

0 commit comments

Comments
 (0)