UNPKG

@rlaurente/nobe

Version:

NOBackEnd - The next level api mocking library for frontend developers. Data persistent mocking api for MVP apps rapid development.

34 lines (33 loc) 978 B
import { AxiosRequestConfig, AxiosResponse } from 'axios'; export declare function setConfig(options: { is_mock: boolean; is_debug: boolean; }): void; export declare function init(options: { git_url: string; workspace?: string; branch?: string; wipe?: boolean; }): Promise<{ is_success: boolean; }>; export declare function get(options: { key: string; }): Promise<any>; export declare function set(options: { key: string; data: any; }): Promise<boolean>; export declare function apply(): Promise<boolean>; export declare function request(options: AxiosRequestConfig): Promise<AxiosResponse>; export declare function upload(file: File): Promise<any>; export declare function getUploadedFile(filename: string): Promise<string | undefined>; export declare function mock(options: { url: string; handler: any; }): void; export declare function transform(options: { url: string; onRequest?: any; onResponse?: any; }): void;