UNPKG

pdd

Version:
32 lines (31 loc) 677 B
import type { UtilityObject } from '../type/utils'; /** * Class RESTful * RESTful处理类 * @author SunnyXu <xy@ztes.com> */ export default class RESTful { private readonly isRESTful; private api; private readonly requestData; /** * Method constructor * @param {String} api * @param {*} data * @param {*} mode * @returns */ constructor(api: string, data: UtilityObject, mode: boolean); /** * Method create * 创建RESTful数据 */ create(): { api: string; data: any; }; /** * private method transformer */ private transformer; }