vuestic-ui
Version:
Vue 3 UI Framework
13 lines (12 loc) • 469 B
TypeScript
import { PropType, ExtractPropTypes } from 'vue';
type AnyRecordOrArray = Array<any> | Record<string, any>;
export declare const useTrackByProps: {
trackBy: {
type: PropType<string | number | ((item: AnyRecordOrArray) => string | number)>;
default: string;
};
};
export declare const useTrackBy: (props: ExtractPropTypes<typeof useTrackByProps>) => {
getKey: (item: AnyRecordOrArray, index: number, defaultValue?: any) => any;
};
export {};