typings indicate default whereas the js code by default is export all
See original GitHub issuein your ts typings:
declare function dayjs (config?: ConfigType): Dayjs
export default dayjs
in your distjs.min.js
...
module.exports = e()
...
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Typescript export vs. default export - Stack Overflow
Modules and their associated keyword like import , export , and export default are JavaScript constructs, not typescript. However typescript added the ...
Read more >Type annotations for default export · Issue #13626 - GitHub
I am confusing about this too. any suggestion about typing the default export function?
Read more >What is export default in JavaScript ? - GeeksforGeeks
Default Exports: Default exports are useful to export only a single object, function, variable. During the import, we can use any name to...
Read more >Documentation - Modules - TypeScript
Each module can optionally export a default export. Default exports are marked with the keyword default ; and there can only be one...
Read more >export - JavaScript - MDN Web Docs
Every module can have two different types of export, named export and default export. You can have multiple named exports per module but ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am using typescript 3.5.3 and dayjs 1.8.5 and only work with this typescript config
"allowSyntheticDefaultImports": true, "esModuleInterop": true,
was this solution reversed?
🎉 This issue has been resolved in version 1.6.1 🎉
The release is available on:
Your semantic-release bot 📦🚀