diff --git a/universal-router/universal-router.d.ts b/universal-router/universal-router.d.ts index 3ddac31265..6acba5c179 100644 --- a/universal-router/universal-router.d.ts +++ b/universal-router/universal-router.d.ts @@ -39,9 +39,9 @@ declare module "universal-router" { * returns a Promise, R can be the type the Promise resolves to. */ export interface Route { - path: string, - action: (ctx: ActionContext & C, params: Params) => R | Promise | undefined, - children?: Routes + path: string; + action: (ctx: ActionContext & C, params: Params) => R | Promise | void; + children?: Routes; } /**