Comparing version 0.10.9 to 0.10.10
@@ -5,12 +5,12 @@ import { Route, PageRoute, RedirectRoute } from './Route'; | ||
} | ||
export interface SiteMap { | ||
redirects: RedirectMap; | ||
pages: PageMap; | ||
export interface SiteMap<Meta extends object = any, Content extends object = any> { | ||
redirects: RedirectMap<any>; | ||
pages: PageMap<Meta, Content>; | ||
} | ||
export interface PageMap { | ||
[url: string]: PageRoute; | ||
export interface PageMap<Meta extends object = any, Content extends object = any> { | ||
[url: string]: PageRoute<Meta, Content>; | ||
} | ||
export interface RedirectMap { | ||
[url: string]: RedirectRoute; | ||
export interface RedirectMap<Meta extends object = any> { | ||
[url: string]: RedirectRoute<Meta>; | ||
} | ||
export declare function isRouteMapSteady(routeMap: RouteMap): boolean; |
@@ -5,12 +5,12 @@ import { Route, PageRoute, RedirectRoute } from './Route'; | ||
} | ||
export interface SiteMap { | ||
redirects: RedirectMap; | ||
pages: PageMap; | ||
export interface SiteMap<Meta extends object = any, Content extends object = any> { | ||
redirects: RedirectMap<any>; | ||
pages: PageMap<Meta, Content>; | ||
} | ||
export interface PageMap { | ||
[url: string]: PageRoute; | ||
export interface PageMap<Meta extends object = any, Content extends object = any> { | ||
[url: string]: PageRoute<Meta, Content>; | ||
} | ||
export interface RedirectMap { | ||
[url: string]: RedirectRoute; | ||
export interface RedirectMap<Meta extends object = any> { | ||
[url: string]: RedirectRoute<Meta>; | ||
} | ||
export declare function isRouteMapSteady(routeMap: RouteMap): boolean; |
{ | ||
"name": "navi", | ||
"version": "0.10.9", | ||
"version": "0.10.10", | ||
"description": "A router-loader for React.", | ||
@@ -5,0 +5,0 @@ "author": "James K Nelson <james@jamesknelson.com>", |
@@ -7,13 +7,13 @@ import { Route, PageRoute, RedirectRoute } from './Route' | ||
export interface SiteMap { | ||
redirects: RedirectMap | ||
pages: PageMap | ||
export interface SiteMap<Meta extends object = any, Content extends object = any> { | ||
redirects: RedirectMap<any> | ||
pages: PageMap<Meta, Content> | ||
} | ||
export interface PageMap { | ||
[url: string]: PageRoute | ||
export interface PageMap<Meta extends object = any, Content extends object = any> { | ||
[url: string]: PageRoute<Meta, Content> | ||
} | ||
export interface RedirectMap { | ||
[url: string]: RedirectRoute | ||
export interface RedirectMap<Meta extends object = any> { | ||
[url: string]: RedirectRoute<Meta> | ||
} | ||
@@ -20,0 +20,0 @@ |
686372