boring-router
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -10,10 +10,3 @@ import { Dict } from 'tslang'; | ||
export declare class RouteMatch<TParamDict extends GeneralParamDict = GeneralParamDict> { | ||
private _name; | ||
/** @internal */ | ||
private _matched; | ||
/** @internal */ | ||
private _exact; | ||
/** @internal */ | ||
private _params; | ||
constructor(_name: string, { match, query }: RouteMatchOptions); | ||
constructor(name: string, { match, query }: RouteMatchOptions); | ||
readonly $matched: boolean; | ||
@@ -20,0 +13,0 @@ readonly $exact: boolean; |
@@ -7,6 +7,8 @@ "use strict"; | ||
class RouteMatch { | ||
constructor(_name, { match, query }) { | ||
this._name = _name; | ||
constructor(name, { match, query }) { | ||
/** @internal */ | ||
this._matched = false; | ||
/** @internal */ | ||
this._exact = false; | ||
this._name = name; | ||
if (match instanceof RegExp && match.global) { | ||
@@ -137,13 +139,10 @@ throw new Error('Expecting a non-global regular expression as match pattern'); | ||
mobx_1.observable | ||
/** @internal */ | ||
], RouteMatch.prototype, "_matched", void 0); | ||
tslib_1.__decorate([ | ||
mobx_1.observable | ||
/** @internal */ | ||
], RouteMatch.prototype, "_exact", void 0); | ||
tslib_1.__decorate([ | ||
mobx_1.observable | ||
/** @internal */ | ||
], RouteMatch.prototype, "_params", void 0); | ||
exports.RouteMatch = RouteMatch; | ||
//# sourceMappingURL=route-match.js.map |
{ | ||
"name": "boring-router", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A light-weight, type-safe, yet reactive router service using MobX.", | ||
@@ -5,0 +5,0 @@ "repository": { |
24659
432