We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79a3170 commit 8a965d2Copy full SHA for 8a965d2
packages/shared/sdk-client/src/LDEmitter.ts
@@ -1,10 +1,12 @@
1
import { LDLogger } from '@launchdarkly/js-sdk-common';
2
3
+type FlagChangeKey = `change:${string}`;
4
+
5
/**
6
* Type for name of emitted events. 'change' is used for all flag changes. 'change:flag-name-here' is used
7
* for specific flag changes.
8
*/
-export type EventName = 'change' | 'dataSourceStatus' | 'error' | string;
9
+export type EventName = 'change' | FlagChangeKey | 'dataSourceStatus' | 'error';
10
11
12
* Implementation Note: There should not be any default listeners for change events in a client
0 commit comments