@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
13 lines • 481 B
text/typescript
type Errors = {
errors?: Error[];
};
/**
* Provides access to error state in an isomorphic error handling system.
* Implements the Props Context Layering pattern to work seamlessly across
* server and client boundaries.
*
* @param props - Optional props containing fallback errors (typically from SSR)
* @returns Object containing the current errors array (context errors take precedence over props)
*/
export declare function useErrors(props?: Errors): Errors;
export {};