yanzhen-design-vue
Version:
5 lines (4 loc) • 338 B
TypeScript
import { Contacts, ContactsDataTypes } from '../constants/contacts';
import { ContactsItem } from '../constants';
export declare function handleDataType<C extends string = ContactsDataTypes>(item: ContactsItem, defaultValue?: C): Contacts | C;
export declare function handleDataTypeKey<K extends string>(activeKey: K): Contacts.USER | K;