UNPKG

vue3-tabor

Version:

Vue 3 routing tabs with keepAlive support, browser-like tab navigation for Vue applications

16 lines (14 loc) 1.31 kB
import { VNode } from 'vue'; type StructureTypes = "Object" | "Array" | "Function" | "String" | "Number" | "Boolean" | "Symbol"; export declare const isType: (type: StructureTypes) => (value: unknown) => boolean; export declare const isFunction: (value: unknown) => value is Function; export declare const isString: (value: unknown) => value is string; export declare const isNonEmptyString: (value: unknown) => boolean; export declare const isObject: <T extends Record<string, any> = Record<string, any>>(value: unknown) => value is T; export declare const throwError: (message: string) => undefined; export declare const pick: <T extends object, K extends keyof T>(base: T, ...keys: K[]) => Pick<T, K>; type Fn<Args extends any[], ReturnType, ThisType = any> = (this: ThisType, ...args: Args) => ReturnType; export declare function withPreAction<Args extends any[], ReturnType, ThisType = any>(originalFn: Fn<Args, ReturnType, ThisType>, preActionFn: Fn<Args, void, ThisType>): Fn<Args, ReturnType, ThisType>; export declare function withPostAction<Args extends any[], ReturnType, ThisType = any>(originalFn: Fn<Args, ReturnType, ThisType>, postActionFn: Fn<Args, void, ThisType>): Fn<Args, ReturnType, ThisType>; export declare function renameComponentType(component: VNode, newName: string): VNode; export {};