Skip to content

Commit 3466db5

Browse files
gribnoysupnbbeeken
authored andcommitted
explicit connection-info in config; replace picking up property with direct type
1 parent 22c3d0c commit 3466db5

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/compass-web/api-extractor.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"mainEntryPointFilePath": "./dist/index.d.ts",
44
"bundledPackages": [
55
"@mongodb-js/*",
6+
"@mongodb-js/mdb-experiment-js",
7+
"@mongodb-js/connection-info",
68
"bson-transpilers",
79
"compass-e2e-tests",
810
"compass-preferences-model",
@@ -23,8 +25,7 @@
2325
},
2426
"dtsRollup": {
2527
"enabled": true,
26-
"untrimmedFilePath": "./dist/index.untrimmed.d.ts",
27-
"publicTrimmedFilePath": "./dist/index.public.d.ts"
28+
"untrimmedFilePath": "./dist/index.untrimmed.d.ts"
2829
},
2930
"apiReport": {
3031
"enabled": false

packages/compass-web/src/entrypoint.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import AppRegistry, {
33
AppRegistryProvider,
44
GlobalAppRegistryProvider,
55
} from '@mongodb-js/compass-app-registry';
6-
import type { ConnectionInfo } from '@mongodb-js/connection-info';
6+
import type { AtlasClusterMetadata } from '@mongodb-js/connection-info';
77
import { useConnectionActions } from '@mongodb-js/compass-connections/provider';
88
import { CompassInstanceStorePlugin } from '@mongodb-js/compass-app-stores';
99
import type {
@@ -166,9 +166,7 @@ export type CompassWebProps = {
166166
* when the action is selected from the sidebar actions. Should be used to
167167
* show the Atlas Cloud "Connect" modal
168168
*/
169-
onOpenConnectViaModal?: (
170-
atlasMetadata: ConnectionInfo['atlasMetadata']
171-
) => void;
169+
onOpenConnectViaModal?: (atlasMetadata?: AtlasClusterMetadata) => void;
172170

173171
/**
174172
* Callback prop called when connections fail to load

0 commit comments

Comments
 (0)