@rivetkit/next-js
Version:
Next.js integration for RivetKit actors and client
37 lines (34 loc) • 998 B
TypeScript
import { Registry, RunConfigInput } from 'rivetkit';
declare const toNextHandler: (registry: Registry<any>, inputConfig?: RunConfigInput) => {
GET: (request: Request, { params }: {
params: Promise<{
all: string[];
}>;
}) => Promise<Response>;
POST: (request: Request, { params }: {
params: Promise<{
all: string[];
}>;
}) => Promise<Response>;
PUT: (request: Request, { params }: {
params: Promise<{
all: string[];
}>;
}) => Promise<Response>;
PATCH: (request: Request, { params }: {
params: Promise<{
all: string[];
}>;
}) => Promise<Response>;
HEAD: (request: Request, { params }: {
params: Promise<{
all: string[];
}>;
}) => Promise<Response>;
OPTIONS: (request: Request, { params }: {
params: Promise<{
all: string[];
}>;
}) => Promise<Response>;
};
export { toNextHandler };