export type ParsedUrlQuery = { [query: string]: string | string[] | undefined; }; export type PreviewData = string | false | object | undefined; export type GetStaticPropsContext< Q extends ParsedUrlQuery = ParsedUrlQuery, D extends PreviewData = PreviewData > = { params?: Q; preview?: boolean; previewData?: D; locale?: string; locales?: string[]; defaultLocale?: string; }; export type GetStaticPathsContext = { locales?: string[]; defaultLocale?: string; }; export type GetStaticPaths
= (
context: GetStaticPathsContext
) => Promise ;
export type GetStaticPathsResult = {
paths: Array = {
props?: P;
revalidate?: number | boolean;
redirect?: Redirect;
notFound?: true;
};