ds-tool
Version:
18 lines (17 loc) • 534 B
TypeScript
/**
* 设置session
*/
export declare const setSession: (key: string, val: any) => void;
/**
* 获取session
*/
export declare const getSession: (key: string) => string | null;
/**
* 清除所有session
*/
export declare const clearSession: () => void;
/**
* 在主入口执行该函数,实现多标签页共享session, 在finally中构建vue/react
* @param checkKey 指定session中必须存在的key
*/
export declare const multiplePagesShareSession: (checkKey?: string | undefined) => Promise<unknown>;