Feat(medusa) refactor claim-item service to typescript (#1640)

* refactor claim-item service to typescript

* update pr
This commit is contained in:
Philip Korsholm
2022-06-10 10:15:48 +02:00
committed by GitHub
parent a605622bcb
commit 1fe518b4af
4 changed files with 62 additions and 98 deletions
+6 -6
View File
@@ -1,11 +1,11 @@
import { MedusaError } from "medusa-core-utils/dist"
/**
* Dedicated method to set metadata.
* @param obj - the entity to apply metadata to.
* @param metadata - the metadata to set
* @return resolves to the updated result.
*/
* Dedicated method to set metadata.
* @param obj - the entity to apply metadata to.
* @param metadata - the metadata to set
* @return resolves to the updated result.
*/
export function setMetadata(
obj: { metadata: Record<string, unknown> },
metadata: Record<string, unknown>
@@ -26,4 +26,4 @@ export function setMetadata(
...existing,
...newData,
}
}
}