Closed manuth closed 3 years ago
The current type-declaration export default function tsify(...) suggests that a default export is present in the corresponding javascript. But tsify doesn't actually use a module.exports.default = function tsify(...) or export default function tsify(...) as seen here: https://github.com/TypeStrong/tsify/blob/437e5b51fce8dfc3c92c218ee66633dc71a7d3ef/index.js#L96
export default function tsify(...)
tsify
module.exports.default = function tsify(...)
For that reason, this module currently can't be consumed correctly using typescript.
This PR fixes the described issue.
Thanks. The export needs to be removed from interface Options, but I'll do that in a separate commit.
export
interface Options
Oooh I'm sorry, I totally forgot about that.
Thanks a ton for the effort!
Thanks. 5.0.4 has been published.
The current type-declaration
export default function tsify(...)
suggests that a default export is present in the corresponding javascript. Buttsify
doesn't actually use amodule.exports.default = function tsify(...)
orexport default function tsify(...)
as seen here: https://github.com/TypeStrong/tsify/blob/437e5b51fce8dfc3c92c218ee66633dc71a7d3ef/index.js#L96For that reason, this module currently can't be consumed correctly using typescript.
This PR fixes the described issue.