Changed undefined return type to void

This commit is contained in:
Jack Moore
2016-08-20 17:05:32 -05:00
parent 5a7c84346b
commit 0e58c8bc43
+3 -3
View File
@@ -39,9 +39,9 @@ declare module "universal-router" {
* returns a Promise, R can be the type the Promise resolves to.
*/
export interface Route<C, R> {
path: string,
action: (ctx: ActionContext & C, params: Params) => R | Promise<R> | undefined,
children?: Routes<C, R>
path: string;
action: (ctx: ActionContext & C, params: Params) => R | Promise<R> | void;
children?: Routes<C, R>;
}
/**