Skip to content

Commit

Permalink
notix: add ab test api
Browse files Browse the repository at this point in the history
  • Loading branch information
derzierau committed Aug 14, 2024
1 parent 37b8feb commit db0b72a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ps-web-apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ export interface UtilsV1 {
getRosettaEnvByKey: GetRosettaEnvByKey;
registerIframeMessageListener: RegisterIframeMessageListener;
}

export interface AbV1 {
userInTestGroupForFeature: (key: string) => { canSeeFeature: boolean, testGroup: string };
}

export interface WaitingRoomV1 {
waitForCapacity: WaitForCapacity;
}
Expand Down Expand Up @@ -218,6 +223,10 @@ export function waitingRoomV1(): Promise<WaitingRoomV1> {
return requireApi("waiting_room:v1");
}

export function abV1(): Promise<AbV1> {
return requirePackage("ab:v1");
}

export function CligV1(): Promise<ICligV1> {
return requirePackage("ppclig:v1");
}
Expand Down

0 comments on commit db0b72a

Please sign in to comment.