mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
Changed undefined return type to void
This commit is contained in:
+3
-3
@@ -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>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user