boring-router
Advanced tools
Comparing version 0.1.0-alpha.11 to 0.1.0
@@ -0,1 +1,2 @@ | ||
export * from './schema'; | ||
export * from './router'; | ||
@@ -2,0 +3,0 @@ export * from './route-match'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./schema"), exports); | ||
tslib_1.__exportStar(require("./router"), exports); | ||
@@ -5,0 +6,0 @@ tslib_1.__exportStar(require("./route-match"), exports); |
import { History } from 'history'; | ||
import { Dict } from 'tslang'; | ||
import { RouteMatch } from './route-match'; | ||
import { RouteSchemaDict } from './schema'; | ||
export declare type FragmentMatcherCallback = (key: string) => string; | ||
@@ -14,8 +14,2 @@ declare type RouteQuerySchemaType<TRouteSchema> = TRouteSchema extends { | ||
} | ||
export interface RouteSchema { | ||
$match?: string | RegExp; | ||
$query?: Dict<boolean>; | ||
$children?: RouteSchemaDict; | ||
} | ||
export declare type RouteSchemaDict = Dict<RouteSchema | boolean>; | ||
export declare type RouteMatchFragmentType<TRouteSchemaDict, TFragmentKey extends string> = { | ||
@@ -22,0 +16,0 @@ [K in Extract<keyof TRouteSchemaDict, string>]: RouteMatchType<TRouteSchemaDict[K], TFragmentKey | FilterRouteMatchNonStringFragment<TRouteSchemaDict[K], K>>; |
{ | ||
"name": "boring-router", | ||
"version": "0.1.0-alpha.11", | ||
"version": "0.1.0", | ||
"description": "A light-weight, type-safe, yet reactive router service using MobX.", | ||
@@ -5,0 +5,0 @@ "repository": { |
21040
16
365