Trying to create a typings definition for the pouch-redux-middleware library, which consists of a single function:
import PouchMiddleware from 'pouch-redux-middleware'
PouchMiddleware({...})
This is the typings definition that has been attempted:
interface PouchMiddleware {
(a: any): any;
}
declare var PouchMiddleware: PouchMiddleware;
declare module "pouch-redux-middleware" {
export = PouchMiddleware;
}
However, an error occurs stating:
Module '"pouch-redux-middleware"' has no default export.
What would be the correct way to declare this?