mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-22 20:37:58 +08:00
Add type docs for NextComponentType type.
This commit is contained in:
4
types/next/index.d.ts
vendored
4
types/next/index.d.ts
vendored
@@ -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<P = {}, IP = P, C = NextContext> =
|
||||
| NextComponentClass<P, IP, C>
|
||||
|
||||
Reference in New Issue
Block a user