UNPKG

356 BTypeScriptView Raw
1export interface PickConfig {
2 aria?: boolean;
3 data?: boolean;
4 attr?: boolean;
5}
6/**
7 * Picker props from exist props with filter
8 * @param props Passed props
9 * @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
10 */
11export default function pickAttrs(props: object, ariaOnly?: boolean | PickConfig): {};