"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.__tsfTypeAliases = void 0;
exports.clearHttpRequestErrorState = clearHttpRequestErrorState;
exports.getHttpRequestErrorState = getHttpRequestErrorState;
exports.setHttpRequestErrorState = setHttpRequestErrorState;
const HttpRequestErrorStateSymbol = Symbol('HttpRequestErrorState');
function clearHttpRequestErrorState(request) {
    delete request.store[HttpRequestErrorStateSymbol];
}
function getHttpRequestErrorState(request) {
    return request.store[HttpRequestErrorStateSymbol];
}
function setHttpRequestErrorState(request, error, matchedRoute) {
    request.store[HttpRequestErrorStateSymbol] = { error, matchedRoute };
}
exports.__tsfTypeAliases = JSON.parse("[1,{\"HttpRequestErrorState\":{\"kind\":18,\"typeName\":\"HttpRequestErrorState\",\"types\":[{\"kind\":20,\"name\":\"error\",\"type\":{\"kind\":2},\"optional\":false},{\"kind\":20,\"name\":\"matchedRoute\",\"type\":{\"kind\":8},\"optional\":false}]}}]")[1];
//# sourceMappingURL=request-error-state.js.map