@toddledev/core
Advanced tools
Comparing version
@@ -119,16 +119,4 @@ import { EventModel } from '../component/component.types'; | ||
} | ||
export declare class RedirectError extends Error { | ||
readonly redirect: { | ||
api: string; | ||
url: URL; | ||
statusCode?: RedirectStatusCode; | ||
}; | ||
constructor(redirect: { | ||
api: string; | ||
url: URL; | ||
statusCode?: RedirectStatusCode; | ||
}); | ||
} | ||
export interface ToddleRequestInit extends RequestInit { | ||
headers: Headers; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RedirectError = exports.ApiMethod = void 0; | ||
exports.ApiMethod = void 0; | ||
var ApiMethod; | ||
@@ -14,10 +14,2 @@ (function (ApiMethod) { | ||
})(ApiMethod || (exports.ApiMethod = ApiMethod = {})); | ||
class RedirectError extends Error { | ||
redirect; | ||
constructor(redirect) { | ||
super(); | ||
this.redirect = redirect; | ||
} | ||
} | ||
exports.RedirectError = RedirectError; | ||
//# sourceMappingURL=apiTypes.js.map |
@@ -16,3 +16,3 @@ { | ||
"main": "dist/index.js", | ||
"version": "0.0.3-alpha.2" | ||
"version": "0.0.3-alpha.3" | ||
} |
@@ -137,16 +137,4 @@ import { EventModel } from '../component/component.types' | ||
export class RedirectError extends Error { | ||
constructor( | ||
public readonly redirect: { | ||
api: string | ||
url: URL | ||
statusCode?: RedirectStatusCode | ||
}, | ||
) { | ||
super() | ||
} | ||
} | ||
export interface ToddleRequestInit extends RequestInit { | ||
headers: Headers | ||
} |
Sorry, the diff of this file is not supported yet
374313
-0.21%8525
-0.36%