0.0.9.0
This commit is contained in:
Vendored
+2
-1
@@ -2,7 +2,7 @@
|
||||
// Do not edit this file manually
|
||||
|
||||
type AppRoutes = "/" | "/auth/register" | "/auth/signin" | "/help" | "/members" | "/members/[id]" | "/members/new" | "/relationship" | "/settings" | "/timeline" | "/tree" | "/trees/new"
|
||||
type AppRouteHandlerRoutes = "/api/auth/[...nextauth]" | "/api/auth/register" | "/api/trees" | "/api/trees/[treeId]" | "/api/trees/[treeId]/activity-logs" | "/api/trees/[treeId]/collaborators" | "/api/trees/[treeId]/import" | "/api/trees/[treeId]/invite" | "/api/trees/[treeId]/members" | "/api/trees/[treeId]/members/[memberId]" | "/api/trees/[treeId]/members/[memberId]/history" | "/api/trees/[treeId]/relationship" | "/api/upload" | "/api/user/activity-logs" | "/api/user/change-password" | "/api/user/profile"
|
||||
type AppRouteHandlerRoutes = "/api/auth/[...nextauth]" | "/api/auth/register" | "/api/trees" | "/api/trees/[treeId]" | "/api/trees/[treeId]/activity-logs" | "/api/trees/[treeId]/collaborators" | "/api/trees/[treeId]/import" | "/api/trees/[treeId]/invite" | "/api/trees/[treeId]/members" | "/api/trees/[treeId]/members/[memberId]" | "/api/trees/[treeId]/members/[memberId]/history" | "/api/trees/[treeId]/relationship" | "/api/upload" | "/api/user/activity-logs" | "/api/user/change-password" | "/api/user/profile" | "/uploads/[filename]"
|
||||
type PageRoutes = never
|
||||
type LayoutRoutes = "/"
|
||||
type RedirectRoutes = never
|
||||
@@ -39,6 +39,7 @@ interface ParamMap {
|
||||
"/timeline": {}
|
||||
"/tree": {}
|
||||
"/trees/new": {}
|
||||
"/uploads/[filename]": { "filename": string; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -299,6 +299,15 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
||||
type __Unused = __Check
|
||||
}
|
||||
|
||||
// Validate ../../../app/uploads/[filename]/route.ts
|
||||
{
|
||||
type __IsExpected<Specific extends RouteHandlerConfig<"/uploads/[filename]">> = Specific
|
||||
const handler = {} as typeof import("../../../app/uploads/[filename]/route.js")
|
||||
type __Check = __IsExpected<typeof handler>
|
||||
// @ts-ignore
|
||||
type __Unused = __Check
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user