feat(core-flows, medusa): add shipping methods to cart API (#7150)
* feat(core-flows, medusa): add shipping methods to cart API * chore: change id to option_id * chore: use list listShippingOptionsForContext instead of validateShippingOption * chore: remove comment * chore: add refresh shipping methods step * chore: set cart step * chore: update all workflows to refresh shipping methods * chore: add tests + cleanup
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
type ArrayDifferenceElement = string | number
|
||||
|
||||
export function arrayDifference(
|
||||
mainArray: ArrayDifferenceElement[],
|
||||
differingArray: ArrayDifferenceElement[]
|
||||
): ArrayDifferenceElement[] {
|
||||
export function arrayDifference<TElement = ArrayDifferenceElement>(
|
||||
mainArray: TElement[],
|
||||
differingArray: TElement[]
|
||||
): TElement[] {
|
||||
const mainArraySet = new Set(mainArray)
|
||||
const differingArraySet = new Set(differingArray)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user