@simple-parlay/components 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,6 +95,8 @@ export interface LiveSlipInput {
95
95
  stake: number;
96
96
  /** Dividend for this many picks, normalised to a $20 bet. */
97
97
  payout20?: number;
98
+ /** Game whose rounding rule (round_payouts / round_to) applies to the rescaled dividend. */
99
+ game?: Game | null;
98
100
  }
99
101
  export interface LiveSlip {
100
102
  legs: LiveSlipLeg[];
@@ -109,7 +111,7 @@ export interface LiveSlip {
109
111
  * The bottom slip: every pick becomes a numbered leg tile, and the stake drives
110
112
  * a dividend that moves on each pick. Dead until the minimum is reached.
111
113
  */
112
- export declare function buildLiveSlip({ selections, order, minReq, maxReq, stake, payout20, }: LiveSlipInput): LiveSlip;
114
+ export declare function buildLiveSlip({ selections, order, minReq, maxReq, stake, payout20, game, }: LiveSlipInput): LiveSlip;
113
115
  /**
114
116
  * Picks keep the order they were made in: existing legs hold their number, new
115
117
  * ones land on the end. Returns `prev` untouched when nothing moved.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-parlay/components",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "UI components, hooks, and utilities for React and React Native",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",