From 5be1841543b055410a5585f075abf2f62680e3fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Vieira?= Date: Wed, 19 Sep 2018 17:01:02 +0100 Subject: [PATCH] Add type docs for NextComponentType type. --- types/next/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/next/index.d.ts b/types/next/index.d.ts index 13815cf958..c66e4c82ac 100644 --- a/types/next/index.d.ts +++ b/types/next/index.d.ts @@ -180,6 +180,10 @@ declare namespace next { /** * Next.js counterpart of React.ComponentType. * Specially useful in HOCs that receive Next.js components. + * + * @template P Component props. + * @template IP Initial props returned from getInitialProps. + * @template C Context passed to getInitialProps. */ type NextComponentType

= | NextComponentClass