gr2m / initials

extract initials from and add initials to names
https://gr2m.github.io/initials
MIT License
44 stars 14 forks source link

Type Definition Error TS2309 #78

Closed devinschulz closed 4 years ago

devinschulz commented 4 years ago

First off, thanks for putting this library together! I noticed this error while developing today:

node_modules/initials/index.d.ts:20:2 - error TS2309: An export assignment cannot be used in a module with other exported elements.

  export = initials;
  ~~~~~~~~~~~~~~~~~~

Changing this line to export default initials fixes the error.

TypeScript version: 3.9.5 initials version: 3.1.0

I'm happy to open a follow-up pull request.

gr2m commented 4 years ago

:tada: This issue has been resolved in version 3.1.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: