UNPKG

@suspensive/react

Version:

Suspensive interfaces for react

15 lines (14 loc) 1.46 kB
//#region src/models/SuspensiveError.ts var SuspensiveError = class SuspensiveError extends Error { static assert(condition, message) { if (!condition) throw new SuspensiveError(message); } }; const Message_useErrorBoundary_this_hook_should_be_called_in_ErrorBoundary_props_children = "useErrorBoundary: this hook should be called in ErrorBoundary.props.children"; const Message_useErrorBoundaryFallbackProps_this_hook_should_be_called_in_ErrorBoundary_props_fallback = "useErrorBoundaryFallbackProps: this hook should be called in ErrorBoundary.props.fallback"; const Message_useErrorBoundaryGroup_this_hook_should_be_called_in_ErrorBoundary_props_children = "useErrorBoundaryGroup: this hook should be called in ErrorBoundary.props.children"; const Message_Delay_ms_prop_should_be_greater_than_or_equal_to_0 = "Delay: ms prop should be greater than or equal to 0"; const Message_DefaultProp_delay_ms_should_be_greater_than_0 = "DefaultProps: delay.ms should be greater than 0"; //#endregion export { Message_DefaultProp_delay_ms_should_be_greater_than_0, Message_Delay_ms_prop_should_be_greater_than_or_equal_to_0, Message_useErrorBoundaryFallbackProps_this_hook_should_be_called_in_ErrorBoundary_props_fallback, Message_useErrorBoundaryGroup_this_hook_should_be_called_in_ErrorBoundary_props_children, Message_useErrorBoundary_this_hook_should_be_called_in_ErrorBoundary_props_children, SuspensiveError }; //# sourceMappingURL=SuspensiveError.mjs.map