@wordpress/api-fetch
Version:
Utility to make WordPress REST API requests.
14 lines • 394 B
TypeScript
/**
* Internal dependencies
*/
import type { APIFetchMiddleware } from '../types';
/**
* API Fetch middleware which overrides the request method for HTTP v1
* compatibility leveraging the REST API X-HTTP-Method-Override header.
*
* @param options
* @param next
*/
declare const httpV1Middleware: APIFetchMiddleware;
export default httpV1Middleware;
//# sourceMappingURL=http-v1.d.ts.map