vite-uni-dev-tool
Version:
vite-uni-dev-tool, debug, uni-app, 一处编写,到处调试
56 lines (55 loc) • 2.83 kB
TypeScript
import { DevConsole } from './devConsole';
import { DevTool } from './type';
import { EventBus } from './devEventBus';
/**
* 备份原生方法
*
* @private
* @memberof DevStore
*/
declare const backup: {
setStorage: {
(options: UniApp.SetStorageOptions): void;
<T extends UniApp.SetStorageOptions = UniApp.SetStorageOptions>(options: T): UniApp.PromisifySuccessResult<T, UniApp.SetStorageOptions, void>;
};
setStorageSync: (key: string, value: any) => void;
clearStorage: () => void;
clearStorageSync: () => void;
removeStorage: {
(options: UniApp.RemoveStorageOptions): void;
<T_1 extends UniApp.RemoveStorageOptions = UniApp.RemoveStorageOptions>(options: T_1): UniApp.PromisifySuccessResult<T_1, UniApp.RemoveStorageOptions, void>;
};
removeStorageSync: (key: string) => void;
reject: <T_2 = never>(reason?: any) => Promise<T_2>;
connectSocket: {
(options: UniApp.ConnectSocketOption): UniApp.SocketTask;
<T_3 extends UniApp.ConnectSocketOption = UniApp.ConnectSocketOption>(options: T_3): UniApp.PromisifySuccessResult<T_3, UniApp.ConnectSocketOption, UniApp.SocketTask>;
};
uploadFile: {
(options: UniApp.UploadFileOption): UniApp.UploadTask;
<T_4 extends UniApp.UploadFileOption = UniApp.UploadFileOption>(options: T_4): UniApp.PromisifySuccessResult<T_4, UniApp.UploadFileOption, UniApp.UploadTask>;
};
$on: (eventName: string, callback: (result: any) => void) => void;
$once: (eventName: string, callback: (result: any) => void) => void;
$emit: (eventName: string, param?: any) => void;
$off: (eventName?: string | string[] | undefined, callback?: ((result: any) => void) | undefined) => void;
__log__: any;
originalConsole: Console;
};
declare const eventBus: EventBus;
declare const consoleProxy: DevConsole;
declare function getDevToolOptions(): DevTool.DevToolOptions | undefined;
declare function initDevTool(options?: DevTool.DevToolOptions): Promise<void>;
declare function showDevToolButton(): void;
declare function hideDevToolButton(): void;
declare function openDevToolWindow(): void;
declare function closeDevToolWindow(): void;
declare function createDevTool(): void;
declare function destroyDevTool(): void;
declare function interceptVuexStorage(store: any): void;
declare function interceptPiniaStore(context: any): any;
declare function uploadAbnormal(params?: {
immediately?: boolean;
}): void;
export { backup, eventBus as devToolEventBus, consoleProxy as console, initDevTool, createDevTool, destroyDevTool, showDevToolButton, hideDevToolButton, openDevToolWindow, closeDevToolWindow, getDevToolOptions, interceptVuexStorage, interceptPiniaStore, uploadAbnormal, };
//# sourceMappingURL=core.d.ts.map