rsnext/packages/next/next-server/lib/loadable-context.ts
Jan Potoms 3f691eaa45
Remove ts-ignore where possible (#10541)
* Remove ts-ignore where possible

And replace by typecasts

* More accurate types

* bend cliententries in a correct shape earlier on

* comment becomes unnecessary

* add webpack overload to allow for the next.js use case

* Avoid changing public interface

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-17 16:16:19 -05:00

5 lines
154 B
TypeScript

import * as React from 'react'
type CaptureFn = (moduleName: string) => void
export const LoadableContext = React.createContext<CaptureFn | null>(null)