From 46636b19a2607af4cb3012a976959a21aa1d324e Mon Sep 17 00:00:00 2001 From: Didi Keke Date: Sat, 17 Dec 2022 20:42:39 +0000 Subject: [PATCH 1/2] Update get-static-props.md --- docs/api-reference/data-fetching/get-static-props.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-reference/data-fetching/get-static-props.md b/docs/api-reference/data-fetching/get-static-props.md index 4a1878780fc5..b792b313e368 100644 --- a/docs/api-reference/data-fetching/get-static-props.md +++ b/docs/api-reference/data-fetching/get-static-props.md @@ -233,7 +233,7 @@ export const getStaticProps: GetStaticProps<{ posts: Post[] }> = async ( If you want to get inferred typings for your props, you can use `InferGetStaticPropsType`: ```tsx -import { InferGetStaticPropsType } from 'next' +import type { InferGetStaticPropsType } from 'next' import { GetStaticProps } from 'next' type Post = { From c59a4c7713439714a70a0cca4fea7d757c0f0853 Mon Sep 17 00:00:00 2001 From: Didi Keke Date: Sun, 18 Dec 2022 17:49:22 +0000 Subject: [PATCH 2/2] Update docs/api-reference/data-fetching/get-static-props.md Co-authored-by: JJ Kasper --- docs/api-reference/data-fetching/get-static-props.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/api-reference/data-fetching/get-static-props.md b/docs/api-reference/data-fetching/get-static-props.md index b792b313e368..9044a46edab9 100644 --- a/docs/api-reference/data-fetching/get-static-props.md +++ b/docs/api-reference/data-fetching/get-static-props.md @@ -233,8 +233,7 @@ export const getStaticProps: GetStaticProps<{ posts: Post[] }> = async ( If you want to get inferred typings for your props, you can use `InferGetStaticPropsType`: ```tsx -import type { InferGetStaticPropsType } from 'next' -import { GetStaticProps } from 'next' +import type { InferGetStaticPropsType, GetStaticProps } from 'next' type Post = { author: string