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', 'themeOverride', 'deterministicId'
|
9 | * @module omitProps
|
10 | * @param props The object to process
|
11 | * @param propsToOmit list disallowed prop keys or an object whose
|
12 | * keys will be omitted. If not specified the automatically excluded
|
13 | * props will be removed.
|
14 | * @param exclude an optional array of disallowed prop names to omit
|
15 | * @returns props object without the excluded props
|
16 | * @module omitProps
|
17 | */
|
18 | declare function omitProps<T extends Record<string, any>>(props: T, propsToOmit?: Record<string, any> | string[], exclude?: string[]): Record<string, any>;
|
19 | export default omitProps;
|
20 | export { omitProps };
|
21 | //# sourceMappingURL=omitProps.d.ts.map |
\ | No newline at end of file |