mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
14 lines
367 B
TypeScript
14 lines
367 B
TypeScript
import type { NextPage } from 'next';
|
|
import type React from 'react';
|
|
|
|
import type { Route } from 'nextjs-routes';
|
|
|
|
export type NextPageWithLayout<P = {}, IP = P> = NextPage<P, IP> & {
|
|
getLayout?: (page: React.ReactElement) => React.ReactNode;
|
|
};
|
|
|
|
export interface RouteParams<Pathname extends Route['pathname']> {
|
|
pathname: Pathname;
|
|
query?: Route['query'];
|
|
}
|