550 BTypeScriptView Raw
2 * Function to apply default values to a component props object. This function is intended for function components,
3 * to maintain parity with the `defaultProps` feature of class components. It accounts for properties that are
4 * specified, but undefined.
5 * @param defaultProps- An object with default values for various properties
6 * @param propsWithoutDefaults- The props object passed into the component
7 */
8export declare function getPropsWithDefaults<TProps extends {}>(defaultProps: Partial<TProps>, propsWithoutDefaults: TProps): TProps;