// This file is generated automatically by Next.js // Do not edit this file manually type AppRoutes = "/" | "/afrolife" | "/afrolife/[id]" | "/blog" | "/blog/[id]" | "/dashboard" | "/directory" | "/directory/[id]" | "/login" | "/subscription" type AppRouteHandlerRoutes = "/api/blog" | "/api/blog/[id]" | "/api/businesses" | "/api/businesses/[id]" | "/api/gemini" | "/api/interviews" | "/api/interviews/[id]" | "/api/offers" | "/api/offers/[id]" | "/api/users" type PageRoutes = never type LayoutRoutes = "/" type RedirectRoutes = never type RewriteRoutes = never type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes interface ParamMap { "/": {} "/afrolife": {} "/afrolife/[id]": { "id": string; } "/api/blog": {} "/api/blog/[id]": { "id": string; } "/api/businesses": {} "/api/businesses/[id]": { "id": string; } "/api/gemini": {} "/api/interviews": {} "/api/interviews/[id]": { "id": string; } "/api/offers": {} "/api/offers/[id]": { "id": string; } "/api/users": {} "/blog": {} "/blog/[id]": { "id": string; } "/dashboard": {} "/directory": {} "/directory/[id]": { "id": string; } "/login": {} "/subscription": {} } export type ParamsOf = ParamMap[Route] interface LayoutSlotMap { "/": never } export type { AppRoutes, PageRoutes, LayoutRoutes, RedirectRoutes, RewriteRoutes, ParamMap, AppRouteHandlerRoutes } 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 } /** * Context for Next.js App Router route handlers * @example * ```tsx * export async function GET(request: NextRequest, context: RouteContext<'/api/users/[id]'>) { * const { id } = await context.params * return Response.json({ id }) * } * ``` */ interface RouteContext { params: Promise } }