@medusajs/medusa
Version:
Building blocks for digital commerce
10 lines • 495 B
TypeScript
/**
* Filter response data to contain props specified in the `allowedProperties`.
* You can read more in the transformQuery middleware utility methods.
*
* @param data - record or an array of records in the response
* @param fields - record props allowed in the response
*/
declare function cleanResponseData<T extends unknown | unknown[]>(data: T, fields: string[]): T extends [] ? Partial<T>[] : Partial<T>;
export { cleanResponseData };
//# sourceMappingURL=clean-response-data.d.ts.map