UNPKG

@whitebox-co/walmart-marketplace-api

Version:

A fully typed TypeScript, Javascript, and Node.js API library for the Walmart Marketplace API

11 lines (10 loc) 487 B
import { WalmartMarketplaceApi } from '../constants'; /** * Utility to Proxy any walmart api function * * For a better explanation of how this works visit the links below * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy * https://javascript.plainenglish.io/javascript-how-to-intercept-function-and-method-calls-b9fd6507ff02 */ declare const apiInterceptor: <T extends WalmartMarketplaceApi>(obj: T, fn: any) => T; export { apiInterceptor };