amis-rpc-design/node_modules/rc-util/lib/pickAttrs.d.ts

12 lines
356 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
export interface PickConfig {
aria?: boolean;
data?: boolean;
attr?: boolean;
}
/**
* Picker props from exist props with filter
* @param props Passed props
* @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
*/
export default function pickAttrs(props: object, ariaOnly?: boolean | PickConfig): {};