Files
DiceCloud/app/imports/api/engine/action/functions/InputProvider.ts
2024-02-20 23:21:12 +02:00

17 lines
481 B
TypeScript

type InputProvider = {
rollDice(
dice: { number: number, diceSize: number }[]
): Promise<number[][]>;
/**
* Choose from a provided selection
* @param action
* @param choices Options to choose from
* @param quantity Number of choices to make [min, max] inclusive, where -1 means no limit
*/
choose(
choices: ({ _id: string } & Record<string, any>)[],
quantity?: [min: number, max: number],
): Promise<string[]>;
}
export default InputProvider;