next-rest-framework
Version:
Next REST Framework - write type-safe, self-documenting REST APIs in Next.js
7 lines (6 loc) • 402 B
TypeScript
import { type NextRestFrameworkConfig } from './types';
import { type DefineApiRouteParams } from './types/define-route';
import { type NextApiRequest, type NextApiResponse } from 'next/types';
export declare const defineCatchAllApiRoute: ({ config }: {
config: NextRestFrameworkConfig;
}) => (methodHandlers?: DefineApiRouteParams) => (req: NextApiRequest, res: NextApiResponse) => Promise<void>;