Skip to content

Commit db0b72a

Browse files
committed
notix: add ab test api
1 parent 37b8feb commit db0b72a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/ps-web-apis.ts

+9
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ export interface UtilsV1 {
174174
getRosettaEnvByKey: GetRosettaEnvByKey;
175175
registerIframeMessageListener: RegisterIframeMessageListener;
176176
}
177+
178+
export interface AbV1 {
179+
userInTestGroupForFeature: (key: string) => { canSeeFeature: boolean, testGroup: string };
180+
}
181+
177182
export interface WaitingRoomV1 {
178183
waitForCapacity: WaitForCapacity;
179184
}
@@ -218,6 +223,10 @@ export function waitingRoomV1(): Promise<WaitingRoomV1> {
218223
return requireApi("waiting_room:v1");
219224
}
220225

226+
export function abV1(): Promise<AbV1> {
227+
return requirePackage("ab:v1");
228+
}
229+
221230
export function CligV1(): Promise<ICligV1> {
222231
return requirePackage("ppclig:v1");
223232
}

0 commit comments

Comments
 (0)