@rivetkit/next-js
Version:
Next.js integration for RivetKit actors and client
12 lines (9 loc) • 557 B
text/typescript
import { Registry, RunConfigInput } from 'rivetkit';
declare const toNextHandler: (registry: Registry<any>, inputConfig?: RunConfigInput) => {
GET: (request: Request, ...args: any) => Response | Promise<Response>;
POST: (request: Request, ...args: any) => Response | Promise<Response>;
PATCH: (request: Request, ...args: any) => Response | Promise<Response>;
HEAD: (request: Request, ...args: any) => Response | Promise<Response>;
OPTIONS: (request: Request, ...args: any) => Response | Promise<Response>;
};
export { toNextHandler };