UNPKG

@grafana/runtime

Version:
12 lines (10 loc) 346 B
function isFetchError(e) { return typeof e === "object" && e !== null && "status" in e && "data" in e; } let singletonInstance; const setBackendSrv = (instance) => { singletonInstance = instance; }; const getBackendSrv = () => singletonInstance; export { getBackendSrv, isFetchError, setBackendSrv }; //# sourceMappingURL=backendSrv.mjs.map