Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

type definition is wrong #35

Closed
nataly87s opened this issue Sep 25, 2019 · 0 comments · Fixed by #36
Closed

type definition is wrong #35

nataly87s opened this issue Sep 25, 2019 · 0 comments · Fixed by #36

Comments

@nataly87s
Copy link
Contributor

the types for the methods show that if hideAfter = 0 then they return a hide function, and if not they return a promise,
but actually you always return a promise and a hide prop on it

nataly87s referenced this issue in nataly87s/cogo-toast Sep 25, 2019
anmdotdev pushed a commit that referenced this issue Sep 26, 2019
* fix type definition

fixes #35

* Update index.d.ts
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant