@seatsio/seatsio-types 5.10.0 → 5.11.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -899,7 +899,12 @@ export type TicketType = {
899
899
  };
900
900
  export type PricingForCategory = (SimplePricing | MultiLevelPricing);
901
901
  export type PricingForObjects = (SimplePricingForObjects | MultiLevelPricingForObjects);
902
- export type Pricing = (PricingForCategory | PricingForObjects)[];
902
+ type LegacyPricing = (PricingForCategory | PricingForObjects)[];
903
+ export type Pricing = {
904
+ priceFormatter?: (price: number) => string;
905
+ prices: (PricingForCategory | PricingForObjects)[];
906
+ showSectionPricingOverlay?: boolean;
907
+ } | LegacyPricing;
903
908
  export type SelectionValidator = SelectionValidatorNoOrphanSeats | SelectionValidatorConsecutiveSeats | SelectionValidatorMinimumSelectedPlaces;
904
909
  interface SelectionValidatorNoOrphanSeats {
905
910
  type: 'noOrphanSeats';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@seatsio/seatsio-types",
3
3
  "description": "Type definitions for Seats.io",
4
- "version": "5.10.0",
4
+ "version": "5.11.0",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",