UNPKG

yanzhen-design-vue

Version:

9 lines (8 loc) 382 B
import { Contacts, User } from '../constants'; import { MaybeVRef } from '@yanzhen-libs/utils-vue'; type Config = { activeTab: MaybeVRef<Contacts>; userActiveTab: MaybeVRef<User>; }; export declare function handleActiveTabKey<K extends Contacts | `${Contacts}-${User}`, D extends string = string>({ activeTab, userActiveTab }: Config, defaultKey?: K | D): K | D; export {};