UNPKG

@aplus-frontend/ui

Version:

37 lines (36 loc) 996 B
import { PropType } from 'vue'; import { Recordable } from '../../type'; export type PropertyKeyType = PropertyKey; export interface CacheInterface { get: (key: PropertyKeyType) => any; set: (key: PropertyKeyType, data: any) => any; has: (key: PropertyKeyType) => boolean; del: (key: PropertyKeyType) => any; [key: string]: any; } export type cacheDataArrType = [string, Recordable<any>][]; export type MatchPattern = string | RegExp | (string | RegExp)[]; export declare const ApKeepAliveProps: () => { store: { type: PropType<CacheInterface>; }; debug: { type: PropType<boolean>; default: boolean; }; max: { type: PropType<number>; default: number; }; exclude: { type: PropType<MatchPattern>; }; include: { type: PropType<MatchPattern>; }; stopTags: { type: PropType<string[]>; default: () => never[]; }; }; export declare const forceStopTags: string[];