Files
medusa-store/packages
patpich 3d6bcaaf65 fix(medusa): ShippingOptionService.list method param type (#4018)
## What

Fix typing on ShippingOptionService.list selector parameter

## Why

A backend server interfacing with the `ShippingOptionService.list()` method will throw TS error when attempting to pass selector values that should be valid.

## Steps to reproduce

* In a IDE that can display TS errors
* Create an instance of the ShippingOptionService
* Call the `list()` method on the instance with the following selector parameter: `{ region_id: "foobar" }`
* Expect: No TS error
* Actual: `TS2345: Argument of type '{ region_id: string; }' is not assignable to parameter of type 'Selector<ShippingMethod>'.`

## How

* Change the `selector` type to `Selector<ShippingOption>`
2023-05-07 10:52:45 +00:00
..
2023-05-04 10:51:13 +02:00
2023-05-04 10:51:13 +02:00
2023-04-04 18:35:27 +02:00
2023-04-04 18:35:27 +02:00
2023-04-04 18:35:27 +02:00
2023-04-04 18:35:27 +02:00
2023-04-04 18:35:27 +02:00
2023-05-04 10:51:13 +02:00
2023-02-14 17:27:43 +01:00
2023-04-04 18:35:27 +02:00
2023-05-04 10:51:13 +02:00
2023-05-04 10:51:13 +02:00