Amend CallRoute signature to allow path/value pair based invalidation of routes

This commit is contained in:
David Gee
2017-03-19 20:56:32 -05:00
parent 6f82c179ad
commit f94da7c86d
+2 -1
View File
@@ -34,7 +34,7 @@ declare namespace FalcorRouter {
type RoutePathSet = FalcorJsonGraph.PathSet;
interface CallRoute extends Route {
call(callPath: RoutePathSet, args: Array<any>): RouteResult | Promise<RouteResult>;
call(callPath: RoutePathSet, args: Array<any>): CallRouteResult | Promise<CallRouteResult>;
}
interface GetRoute extends Route {
@@ -47,6 +47,7 @@ declare namespace FalcorRouter {
type RouteDefinition = GetRoute | SetRoute | CallRoute;
type RouteResult = FalcorJsonGraph.PathValue | Array<FalcorJsonGraph.PathValue> | FalcorJsonGraph.JSONEnvelope<any>;
type CallRouteResult = FalcorJsonGraph.PathValue | FalcorJsonGraph.InvalidPath | Array<FalcorJsonGraph.PathValue | FalcorJsonGraph.InvalidPath> | FalcorJsonGraph.JSONGraphEnvelope;
interface RouterOptions {
debug?: boolean;