/opt/canhelp/apps/web/.next/types
Edit: /opt/canhelp/apps/web/.next/types/routes.d.ts (2474B)
// This file is generated automatically by Next.js
// Do not edit this file manually
type AppRoutes = "/" | "/admin" | "/become-specialist" | "/chat" | "/dashboard" | "/delete-account" | "/favorites" | "/forgot-password" | "/login" | "/maintenance" | "/notifications" | "/payment" | "/pricing" | "/privacy" | "/profile" | "/register" | "/reset-password" | "/schedule" | "/site/[slug]" | "/specialist-setup" | "/specialist-tasks" | "/specialists" | "/support" | "/tasks" | "/tasks/[id]" | "/tasks/[id]/offer" | "/tasks/new" | "/users/[id]"
type PageRoutes = never
type LayoutRoutes = "/" | "/site/[slug]"
type RedirectRoutes = never
type RewriteRoutes = never
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes
interface ParamMap {
"/": {}
"/admin": {}
"/become-specialist": {}
"/chat": {}
"/dashboard": {}
"/delete-account": {}
"/favorites": {}
"/forgot-password": {}
"/login": {}
"/maintenance": {}
"/notifications": {}
"/payment": {}
"/pricing": {}
"/privacy": {}
"/profile": {}
"/register": {}
"/reset-password": {}
"/schedule": {}
"/site/[slug]": { "slug": string; }
"/specialist-setup": {}
"/specialist-tasks": {}
"/specialists": {}
"/support": {}
"/tasks": {}
"/tasks/[id]": { "id": string; }
"/tasks/[id]/offer": { "id": string; }
"/tasks/new": {}
"/users/[id]": { "id": string; }
}
export type ParamsOf
= ParamMap[Route]
interface LayoutSlotMap {
"/": never
"/site/[slug]": never
}
export type { AppRoutes, PageRoutes, LayoutRoutes, RedirectRoutes, RewriteRoutes, ParamMap }
declare global {
/**
* Props for Next.js App Router page components
* @example
* ```tsx
* export default function Page(props: PageProps<'/blog/[slug]'>) {
* const { slug } = await props.params
* return Blog post: {slug}
* }
* ```
*/
interface PageProps {
params: Promise
searchParams: Promise>
}
/**
* Props for Next.js App Router layout components
* @example
* ```tsx
* export default function Layout(props: LayoutProps<'/dashboard'>) {
* return {props.children}
* }
* ```
*/
type LayoutProps = {
params: Promise
children: React.ReactNode
} & {
[K in LayoutSlotMap[LayoutRoute]]: React.ReactNode
}
}