UNPKG

mihawk

Version:

A tiny & simple mock server tool, support json,js,cjs,ts(typescript).

9 lines (8 loc) 269 B
/** * 接口的响应为 json 格式的请求 * @param {string} url * @param {RequestInit} options * @returns {Promise<R>} res * @description */ export declare function jsonRequest<R = Record<string, any>>(url: string, options?: Record<string, any>): Promise<R>;