UNPKG

@kennarddh/spinning-prize-wheel

Version:
18 lines (17 loc) 649 B
import LuckyWheel from './Components/LuckyWheel/LuckyWheel'; import type { ILuckyWheel, IChoices, IChoice, IRarityGroups } from './Components/LuckyWheel/Types'; export default LuckyWheel; declare const Utils: { Array: { Pick: <T>(array: T[]) => T; PickUnique: <T_1>(array: T_1[], last: T_1) => T_1; Shuffle: <T_2>(array: T_2[]) => T_2[]; }; Random: { RandomBetween: (min: number, max: number) => number; RandomColor: () => string; WeightedRandom: (rarity: Record<string, number>) => string | null; }; }; export { Utils }; export type { ILuckyWheel, IChoices, IChoice, IRarityGroups };