Type Alias NextRouteHandlerSegmentData<PathParameters>

NextRouteHandlerSegmentData<PathParameters>: {
    params: Promise<PathParameters>;
}

The segment data object passed to a Next.js API route handler as the second parameter.

Type Parameters

  • PathParameters extends Record<string, string> = Record<never, never>