@suspensive/react
Version:
Suspensive interfaces for react
1 lines • 1.38 kB
Source Map (JSON)
{"version":3,"file":"SuspensiveError.cjs","names":[],"sources":["../../src/models/SuspensiveError.ts"],"sourcesContent":["export class SuspensiveError extends Error {\n static assert(condition: boolean, message: string): asserts condition {\n if (!condition) {\n throw new SuspensiveError(message)\n }\n }\n}\n\nexport const Message_useErrorBoundary_this_hook_should_be_called_in_ErrorBoundary_props_children =\n 'useErrorBoundary: this hook should be called in ErrorBoundary.props.children'\n\nexport const Message_useErrorBoundaryFallbackProps_this_hook_should_be_called_in_ErrorBoundary_props_fallback =\n 'useErrorBoundaryFallbackProps: this hook should be called in ErrorBoundary.props.fallback'\n\nexport const Message_useErrorBoundaryGroup_this_hook_should_be_called_in_ErrorBoundary_props_children =\n 'useErrorBoundaryGroup: this hook should be called in ErrorBoundary.props.children'\n\nexport const Message_Delay_ms_prop_should_be_greater_than_or_equal_to_0 =\n 'Delay: ms prop should be greater than or equal to 0'\n\nexport const Message_DefaultProp_delay_ms_should_be_greater_than_0 = 'DefaultProps: delay.ms should be greater than 0'\n"],"mappings":";;AAAA,IAAa,kBAAb,MAAa,wBAAwB,MAAM;CACzC,OAAO,OAAO,WAAoB,SAAoC;EACpE,IAAI,CAAC,WACH,MAAM,IAAI,gBAAgB,OAAO;CAErC;AACF;AAEA,MAAa,sFACX;AAEF,MAAa,mGACX;AAEF,MAAa,2FACX;AAEF,MAAa,6DACX;AAEF,MAAa,wDAAwD"}