React-toastify: Remove const enum from ts interface

Created on 5 Nov 2018  路  5Comments  路  Source: fkhadra/react-toastify

Remove const enum from ts interface

first of all react-toastify is awesome

Now we update our CRA (create-react-app) to the newer version. New CRA does not support const enums 馃槩
source: https://facebook.github.io/create-react-app/docs/adding-typescript

I think that a lot of user as me will use the newest CRA in their react projects.

Do you think that there is an option to remove const enum and repalce it with normal enum? (only remove const from ToastPosition ToastType)
ttps://github.com/fkhadra/react-toastify/blob/master/index.d.ts#L3

Thx and have a nice day

Most helpful comment

It's fine don't worry. I'll let you know when it's done

All 5 comments

Hey sure, there is already a PR for that. I'm busy merging all the PR.
Thanks for your feedback

Okey sorry for that ^^
I didn't look to PR section

It's fine don't worry. I'll let you know when it's done

Same issue, good that it's being worked on :). @fkhadra Will you be merging the PR soon? And thanks for the great library.

Hello @Svehla, @tjugg,

The PR has been merged and the fix is live. Thanks for the patience.

Thanks for the support also.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jorgecuesta picture jorgecuesta  路  5Comments

JaLe29 picture JaLe29  路  5Comments

spiritedfang picture spiritedfang  路  3Comments

fkhadra picture fkhadra  路  3Comments

shirbr510 picture shirbr510  路  5Comments