Interface defining the properties of the IStaticHandlerParams class.

interface IStaticHandlerParams<Data extends IAnything = IAnything> {
    fallback?: (e: Error) => void;
    onLoadBegin?: () => void;
    onLoadEnd?: (isOk: boolean) => void;
    resultMap?: (json: null | Record<string, any>) => null | Data;
}

Type Parameters

Properties

fallback?: (e: Error) => void
onLoadBegin?: () => void
onLoadEnd?: (isOk: boolean) => void
resultMap?: (json: null | Record<string, any>) => null | Data