@types/next-server
Advanced tools
Comparing version 7.0.4 to 7.0.5
@@ -10,5 +10,5 @@ import * as React from "react"; | ||
type AsyncComponent<P = any> = Promise<React.ComponentType<P>>; | ||
type AsyncComponent<P = any> = Promise<React.ComponentType<P> | { default: React.ComponentType<P> }>; | ||
type AsyncComponentLoader<P = any> = () => AsyncComponent<P>; | ||
type ModuleMapping = Record<string, AsyncComponent>; | ||
type ModuleMapping = Record<string, AsyncComponent | AsyncComponentLoader>; | ||
type LoadedModuleMapping = Record<string, React.ComponentType>; | ||
@@ -35,6 +35,6 @@ | ||
declare function dynamic<P = {}>( | ||
options: AsyncComponentLoader<P> | AsyncComponent<P> | NextDynamicOptions<P> | ||
asyncModuleOrOptions: AsyncComponentLoader<P> | AsyncComponent<P> | NextDynamicOptions<P> | ||
): DynamicComponent<P>; | ||
declare function dynamic<P = {}>( | ||
asyncModule: AsyncComponent<P>, | ||
asyncModule: AsyncComponentLoader<P> | AsyncComponent<P>, | ||
options: NextDynamicOptions<P> | ||
@@ -41,0 +41,0 @@ ): DynamicComponent<P>; |
{ | ||
"name": "@types/next-server", | ||
"version": "7.0.4", | ||
"version": "7.0.5", | ||
"description": "TypeScript definitions for next-server", | ||
@@ -55,4 +55,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "41e9e1f4c3a77127f1c0695db379c1e65cfbeddf020dc77fc7574d9fe974254e", | ||
"typesPublisherContentHash": "85e1efd08dd12fe64b9aac8b220ff5087de239881a2027f53bd5d17d8db00d57", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 13 Feb 2019 21:04:35 GMT | ||
* Last updated: Thu, 21 Feb 2019 18:40:08 GMT | ||
* Dependencies: @types/node, @types/react, @types/react-loadable | ||
@@ -14,0 +14,0 @@ * Global values: none |
14667