chore(medusa, interfaces): Uniformise class checks (#5869)
**What** One problem with local development can be the dependencies management. To mitigate that, transform checks from an instance of to value check as well as harmonize utils function to be part of the class as a static method instead of separate utilities. By using this approach we are not dependent of the origin of the class and therefore it should ease the user experience. **NOTE** As a next step to discuss, we should probably move the interfaces from the interfaces/medusa package to the utils package. Then we can deprecate the interfaces package and remove it at a later time
This commit is contained in:
1 parent
496dcf10c4
commit
45996d58a2
27 files changed
+187
-178
No files matched your search
@@ -10,7 +10,7 @@ class WebshipperFulfillmentService extends AbstractFulfillmentService {
|
||||
{ logger, totalsService, claimService, swapService, orderService },
|
||||
options
|
||||
) {
|
||||
super()
|
||||
super(...arguments)
|
||||
|
||||
this.options_ = options
|
||||
|
||||
|
||||
Reference in new issue
Block a user