Closed joelspadin closed 2 years ago
Sorry, but the syntax looks invalid. This is not a way to export in TypeScript. There are no syntax like export = ...
in JavaScript ad TypeScript.
This is not a way to export in TypeScript. There are no syntax like
export = ...
in JavaScript ad TypeScript.
I don't understand what you mean. This is valid TypeScript syntax, and given the link in my original comment it is the correct syntax to model JavaScript that uses module.exports =
.
Sorry didn't know that, I'm not an expert in typescript.
:tada: This PR is included in version 4.5.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Since the code uses
module.exports = ...
, the TypeScript types should useexport = ...
to match. This ensures it works when neitheresModuleInterop
norallowSyntheticDefaultImports
are enabled.For more context, see https://github.com/DefinitelyTyped/DefinitelyTyped#a-package-uses-export--but-i-prefer-to-use-default-imports-can-i-change-export--to-export-default