Skip to content

Commit 6691588

Browse files
committed
chore(instance): off -> removeListener
1 parent 72c9c15 commit 6691588

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/databases-collections/src/stores/create-namespace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function activatePlugin(_: unknown, services: CreateNamespaceServices) {
7373
return {
7474
store,
7575
deactivate() {
76-
instance.off('change:topologyDescription', onTopologyChange);
76+
instance.removeListener('change:topologyDescription', onTopologyChange);
7777
globalAppRegistry.removeListener(
7878
'open-create-database',
7979
onOpenCreateDatabase

packages/instance-model/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ declare class MongoDBInstance extends MongoDBInstanceProps {
100100
}): Promise<Collection | null>;
101101
removeAllListeners(): void;
102102
on(evt: string, fn: (...args: any) => void);
103-
off(evt: string, fn: (...args: any) => void);
103+
removeListener(evt: string, fn: (...args: any) => void);
104104
toJSON(opts?: { derived?: boolean }): this;
105105
}
106106

0 commit comments

Comments
 (0)