Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept string as function #8

Open
trustedtomato opened this issue Jun 14, 2021 · 2 comments
Open

Accept string as function #8

trustedtomato opened this issue Jun 14, 2021 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@trustedtomato
Copy link

The module already works with strings, only the types should be updated.

Probably type AsyncFunction = (...args: any[]) => Promise<unknown>; should be type AsyncFunction = ((...args: any[]) => Promise<unknown>;) | string

@sindresorhus
Copy link
Owner

It would also have to be documented and tested.

@sindresorhus sindresorhus added enhancement New feature or request help wanted Extra attention is needed labels Jun 15, 2021
@sindresorhus sindresorhus changed the title Types: accept string as function. Accept string as function Jun 15, 2021
@trustedtomato
Copy link
Author

Arright', gonna make a PR! Very nice work, btw!!:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants