@spiffcommerce/core 20.4.1 → 20.4.3
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.
- package/dist/index.d.ts +3 -2
- package/dist/index.js +315 -301
- package/dist/index.umd.cjs +72 -66
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1546,8 +1546,9 @@ interface WorkflowExperience {
|
|
|
1546
1546
|
* @throws {Error} if the WorkflowExperience is read-only.
|
|
1547
1547
|
* @throws {RangeError} if the value is below 1.
|
|
1548
1548
|
* @param quantity The amount that was, or will be, ordered.
|
|
1549
|
+
* @returns A promise that resolves when the Transaction has been updated on the server.
|
|
1549
1550
|
*/
|
|
1550
|
-
setQuantity(quantity: number): void
|
|
1551
|
+
setQuantity(quantity: number): Promise<void>;
|
|
1551
1552
|
/**
|
|
1552
1553
|
* Registers a callback function to be called when the specified event is raised.
|
|
1553
1554
|
* @param type The type of event to listen for.
|
|
@@ -1610,7 +1611,7 @@ declare class WorkflowExperienceImpl implements WorkflowExperience {
|
|
|
1610
1611
|
[key: string]: string;
|
|
1611
1612
|
}>;
|
|
1612
1613
|
getQuantity(): number;
|
|
1613
|
-
setQuantity(quantity: number): void
|
|
1614
|
+
setQuantity(quantity: number): Promise<void>;
|
|
1614
1615
|
addEventListener(type: WorkflowExperienceEventType, callback: (workflowExperience: WorkflowExperience) => void): void;
|
|
1615
1616
|
removeEventListener(type: WorkflowExperienceEventType, callback: (workflowExperience: WorkflowExperience) => void): void;
|
|
1616
1617
|
private callEvent;
|