1 | /**
|
2 | * ---
|
3 | * category: utilities/react
|
4 | * ---
|
5 | * Return an object with the remaining props after the given props are omitted.
|
6 | *
|
7 | * Automatically excludes the following props:
|
8 | * `theme`, `children`, `className`, `style`, `styles`, `makeStyles`,
|
9 | * `themeOverride`, `deterministicId`
|
10 | * @module omitProps
|
11 | * @param props The object to process
|
12 | * @param propsToOmit list disallowed prop keys or an object whose
|
13 | * keys will be omitted. If not specified the automatically excluded
|
14 | * props will be removed.
|
15 | * @param exclude an optional array of disallowed prop names to omit
|
16 | * @returns props object without the excluded props
|
17 | * @module omitProps
|
18 | */
|
19 | declare function omitProps<T extends Record<string, any>>(props: T, propsToOmit?: Record<string, any> | string[], exclude?: string[]): Record<string, any>;
|
20 | export default omitProps;
|
21 | export { omitProps };
|
22 | //# sourceMappingURL=omitProps.d.ts.map |
\ | No newline at end of file |