rsnext/packages/next-server/lib/loadable.d.ts
Luis Fernando Alvarez D 7dee8d1280 Add types for next/dynamic (#7157)
* Add types for next/dynamic

* Updated types

* .d.ts files are now included by the taskfile of next-server
2019-04-25 17:51:36 +02:00

14 lines
326 B
TypeScript

/* tslint:disable */
import React from 'react'
declare namespace LoadableExport {
interface ILoadable {
<P = {}>(opts: any): React.ComponentClass<P>
Map<P = {}>(opts: any): React.ComponentType<P>
preloadAll(): Promise<any>
}
}
declare const LoadableExport: LoadableExport.ILoadable;
export = LoadableExport