Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FallbackOptions

Hierarchy

  • FallbackOptions

Index

Properties

Optional errMsg

errMsg: undefined | ((err: string) => string)

the error message to return when there is no local data and we failed to request data from remote It takes the stringified exception as the parameter

Optional succMsg

succMsg: undefined | string

the success message shown when data is loaded successfully

Optional timeoutTime

timeoutTime: undefined | number

the timeout in millisecond for requesting data from remote. A timeout error with appropriate error message will be thrown for response that does not return within this time interval

Optional warnMsg

warnMsg: undefined | ((err: string) => string)

the warning message to return when data expired and we failed to request new data from remote. It takes the stringified exception as the parameter

Generated using TypeDoc