-
-
Notifications
You must be signed in to change notification settings - Fork 502
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
SetParameterType for functions #675
Comments
Sounds useful 👍 |
I'd like to try to implement this type, but I'm wondering if there are any other use-cases except mock/testing? Or is it ok to add this type just for mock/test? @sindresorhus @innermatrix |
According to ChatGPT: Certainly! Here are some use-cases for the
These are just a few scenarios where |
Just like we have
SetReturnType
, I'd like to seeSetParameterType
for individual parameters (this is useful for mocking / testing).For example
would be the same function type as
fn
except with first param type changed tostring | null
The text was updated successfully, but these errors were encountered: