Skip to content

Commit c142b4f

Browse files
committed
Make UnleashClientClass type more specific
1 parent bcc0b86 commit c142b4f

File tree

1 file changed

+8
-1
lines changed
  • packages/browser/src/integrations/featureFlags/unleash

1 file changed

+8
-1
lines changed

packages/browser/src/integrations/featureFlags/unleash/types.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@ export interface UnleashClient {
1313
getVariant(this: UnleashClient, featureName: string): IVariant;
1414
}
1515

16-
export type UnleashClientClass = new (...args: unknown[]) => UnleashClient;
16+
export interface IConfig {
17+
[key: string]: unknown;
18+
appName: string;
19+
clientKey: string;
20+
url: URL | string;
21+
}
22+
23+
export type UnleashClientClass = new (config: IConfig) => UnleashClient;

0 commit comments

Comments
 (0)