React-toastify: dismiss / dismissAll for TS

Created on 14 Dec 2017  路  2Comments  路  Source: fkhadra/react-toastify

TS interface for toast doesn't allow for dismiss argument to be optional -
current: dismiss(toastId: number): void;
should be: dismiss(toastId?: number): void;

This would allow user to forgo using toastId and enable dismissing all active toast messages

bug

All 2 comments

Thank @keljond27 for reporting the issue. It's fixed and will be live soon.

@keljond27 the new release is live 馃殌

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AiBaby19 picture AiBaby19  路  4Comments

AllyssonAlas picture AllyssonAlas  路  4Comments

SmileSydney picture SmileSydney  路  4Comments

albert-olive picture albert-olive  路  5Comments

fkhadra picture fkhadra  路  3Comments