UNPKG

708 BTypeScriptView Raw
1/**
2 * ---
3 * category: utilities/react
4 * ---
5 * Return a props object with only specified propTypes.
6 * @module pickProps
7 * @param {Object} props React component props
8 * @param {Object|Array<string>} propTypesOrAllowedPropList React component propTypes or the list of allowed prop keys
9 * @param {Array} include an optional array of prop names to include
10 * @returns {Object} props object with only the included props
11 * @module pickProps
12 */
13declare function pickProps<T extends Record<string, any>>(props: T, propTypesOrAllowedPropList: Record<string, any> | string[], include?: string[]): Record<string, unknown>;
14export default pickProps;
15export { pickProps };
16//# sourceMappingURL=pickProps.d.ts.map
\No newline at end of file