I want use inline-style-prefixer like:
var InlineStylePrefixer = require(\'inline-style-prefixer\');
...
var prefixer
You'd do two/three declares:
declare class InlineStylePrefixer {
constructor(useagent: string) {}
}
declare module InlineStylePrefixer {
export function prefixAll(style: Object): Object;
}
declare module "inline-style-prefixer" {
export = InlineStylePrefixer;
}
When you have a class and a module with the same name, the module is merged with the class.