Files
ETB/ETB-FrontEnd/node_modules/@mui/x-internals/useAssertModelConsistency/useAssertModelConsistency.d.ts
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

32 lines
838 B
TypeScript

/**
* Make sure a controlled prop is used correctly.
* Logs errors if the prop either:
*
* - switch between controlled and uncontrolled
* - modify it's default value
* @param parameters
*/
declare function useAssertModelConsistencyOutsideOfProduction<T>(parameters: {
/**
* The warning prefix indicating from which package the warning comes from.
*/
warningPrefix?: string;
/**
* The name of the component used in the warning message.
*/
componentName: string;
/**
* The name of the controlled state.
*/
propName: string;
/**
* The value of the controlled prop.
*/
controlled: T | undefined;
/**
* The default value of the controlled prop.
*/
defaultValue: T;
}): void;
export declare const useAssertModelConsistency: typeof useAssertModelConsistencyOutsideOfProduction;
export {};