mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Amend CallRoute signature to allow path/value pair based invalidation of routes
This commit is contained in:
Vendored
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user