Feature request
NextJS currently exports the GetStaticPropsResult and GetStaticPropsContext types which helps us to type our module boundaries like so:
import { GetStaticPropsContext, GetStaticPropsResult } from "next";
export async function getStaticProps(
context: GetStaticPropsContext
): Promise<GetStaticPropsResult> {
// …
}
My request is for the GetStaticPathsResult type to be exported as well, so we can do the following:
export async function getStaticPaths(): Promise<GetStaticPathsResult> {
// …
}