UNPKG

enchanted-next-router

Version:

✨ Polished API for Next.js Router

7 lines (6 loc) 328 B
/// <reference types="node" /> import type { ParsedUrlQuery } from 'querystring'; import type { GetServerSidePropsContext } from 'next'; export declare function enchanteServerRouter<P extends ParsedUrlQuery = ParsedUrlQuery>(ctx: GetServerSidePropsContext<P>): Omit<GetServerSidePropsContext<P>, 'params'> & { params: P; };