@daysnap/horn-use
Version:
horn use
13 lines (12 loc) • 467 B
TypeScript
interface UseKeepAliveState {
name: string;
position: number;
mode: 'auto' | 'custom';
}
type UseKeepAliveByPositionOptions = Partial<Omit<UseKeepAliveState, 'position'>> | boolean;
export declare const useKeepAliveByPosition: (options?: UseKeepAliveByPositionOptions) => {
keepAliveList: import("vue").Ref<UseKeepAliveState[] | undefined>;
includes: import("vue").ComputedRef<string[]>;
keep: (data: UseKeepAliveState) => void;
};
export {};