@wordpress/api-fetch
Version:
Utility to make WordPress REST API requests.
14 lines • 419 B
TypeScript
export interface APIFetchOptions extends RequestInit {
headers?: Record<string, string>;
path?: string;
url?: string;
/**
* @default true
*/
parse?: boolean;
data?: any;
namespace?: string;
endpoint?: string;
}
export type APIFetchMiddleware = (options: APIFetchOptions, next: (nextOptions: APIFetchOptions) => Promise<any>) => Promise<any>;
//# sourceMappingURL=types.d.ts.map