@aplus-frontend/ui
Version:
11 lines (10 loc) • 439 B
TypeScript
import { Ref } from 'vue';
import { CacheInterface, PropertyKeyType } from './interface';
type DataModel = {
getter: (key?: string) => Promise<any>;
setter: (key: string, data: any) => Promise<any>;
has: (key?: string) => Promise<any>;
};
export declare const useApKeepAliveProvide: (cache: CacheInterface, currentModuleKey: Ref<PropertyKeyType>) => void;
export declare const useApKeepAliveInject: () => DataModel;
export {};