Enable no implicit this (#2709)
* Enable no implicit this * Fix this reference in order return utils
This commit is contained in:
parent
cf2b42f467
commit
20c69efe16
2 changed files with 3 additions and 2 deletions
|
@ -56,12 +56,12 @@ class ReturnFormDataParser {
|
|||
? this.formData.amount
|
||||
: undefined;
|
||||
|
||||
private getParsedLineData = function<
|
||||
private getParsedLineData = <
|
||||
T extends OrderReturnFulfillmentLineInput | OrderReturnLineInput
|
||||
>(
|
||||
itemsQuantities: FormsetQuantityData,
|
||||
idKey: "fulfillmentLineId" | "orderLineId",
|
||||
): T[] {
|
||||
): T[] => {
|
||||
const { itemsToBeReplaced } = this.formData;
|
||||
|
||||
return itemsQuantities.reduce((result, { value: quantity, id }) => {
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"target": "es5",
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noImplicitThis": true,
|
||||
"paths": {
|
||||
"@assets/*": ["assets/*"],
|
||||
"@locale/*": ["locale/*"],
|
||||
|
|
Loading…
Reference in a new issue