UNPKG

@gatling.io/core

Version:

Gatling JS is a JavaScript/TypeScript interface for the [Gatling load testing tool](https://gatling.io/).

18 lines (17 loc) 755 B
import { Wrapper } from "../common"; import { Executable } from "./execs"; import JvmChoiceWithKey = io.gatling.javaapi.core.Choice$WithKey; import JvmChoiceWithWeight = io.gatling.javaapi.core.Choice$WithWeight; export interface ChoiceWithKey extends Wrapper<JvmChoiceWithKey> { } interface ChoiceWithKeyThen { then(executable: Executable<any>, ...executables: Executable<any>[]): ChoiceWithKey; } export declare const onCase: (key: unknown) => ChoiceWithKeyThen; export interface ChoiceWithWeight extends Wrapper<JvmChoiceWithWeight> { } interface ChoiceWithWeightThen { then(executable: Executable<any>, ...executables: Executable<any>[]): ChoiceWithWeight; } export declare const percent: (percent: number) => ChoiceWithWeightThen; export {};