UNPKG

@instructure/ui-react-utils

Version:

A React utility library made by Instructure Inc.

16 lines 641 B
/** * --- * category: utilities/react * --- * Return a props object with only specified propTypes. * * @param props React component props * @param propTypesOrAllowedPropList React component propTypes or the list of allowed prop keys * @param include an optional array of prop names to include * @returns props object with only the included props * @module pickProps */ declare function pickProps<T extends Record<string, any>>(props: T, propTypesOrAllowedPropList: Record<string, any> | string[], include?: string[]): Record<string, unknown>; export default pickProps; export { pickProps }; //# sourceMappingURL=pickProps.d.ts.map