UNPKG

485 BTypeScriptView Raw
1import { ISettingsMap } from './warn';
2/**
3 * Warns when a deprecated props are being used.
4 *
5 * @public
6 * @param componentName - The name of the component being used.
7 * @param props - The props passed into the component.
8 * @param deprecationMap - The map of deprecations, where key is the prop name and the value is
9 * either null or a replacement prop name.
10 */
11export declare function warnDeprecations<P>(componentName: string, props: P, deprecationMap: ISettingsMap<P>): void;