Skip to content

Commit c7c5292

Browse files
♻️ Use RouteInfo with Omit instead of anonymous type (#110)
1 parent e7c7b46 commit c7c5292

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/core/internal.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,7 @@ export interface RouterNode {
9494
tags: string[]
9595
line: number
9696
column: number
97-
routes: {
98-
method: string
99-
path: string
100-
function: string
101-
line: number
102-
column: number
103-
docstring?: string
104-
}[]
97+
routes: Omit<RouteInfo, "owner">[]
10598
children: { router: RouterNode; prefix: string; tags: string[] }[]
10699
}
107100

0 commit comments

Comments
 (0)