Skip to content

Commit 46baddd

Browse files
authored
denote optional type (#61)
1 parent 8d758be commit 46baddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type NestedArray<T> = Array<T | NestedArray<T>>;
1414
* @param url - URL path (e.g. /user/12345)
1515
* @param route - URL pattern (e.g. /user/:id)
1616
*/
17-
export function exec(url: string, route: string, matches: {
17+
export function exec(url: string, route: string, matches?: {
1818
params: {
1919
[param: string]: string;
2020
};

0 commit comments

Comments
 (0)