Skip to content

Commit ff1a2bc

Browse files
committed
fix: typing to align with browser sdk v4
1 parent 17486a2 commit ff1a2bc

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/toolbar/src/core/utils/analytics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LDClient } from 'launchdarkly-js-client-sdk';
1+
import type { LDClient } from '../../types/plugins/LDClient';
22
import type { FeedbackSentiment } from '../../types/analytics';
33
import { isDoNotTrackEnabled } from './browser';
44
import { sendFeedback } from './feedback';

packages/toolbar/src/core/utils/feedback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { LDRecord } from '@launchdarkly/session-replay';
2-
import type { LDClient } from '@launchdarkly/js-client-sdk';
2+
import type { LDClient } from '../../types/plugins/LDClient';
33

44
export type LDFeedbackSentiment = 'positive' | 'neutral' | 'negative';
55

packages/toolbar/src/types/plugins/LDClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ export interface LDClient {
1515
getContext(): any;
1616
on(key: string, callback: (...args: any[]) => void): void;
1717
off(key: string, callback: (...args: any[]) => void): void;
18+
flush(): void;
1819
}

0 commit comments

Comments
 (0)