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

Mark all Options parameters as optional #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qtiki
Copy link

@qtiki qtiki commented Feb 18, 2020

Currently the types enforce you to either A) provide no options or B) provide a value for every option. In reality they all have default values and can be left "undefined" so they should be optional in the types too.

Currently the types enforce you to either A) provide no options or B) provide a value for every option. In reality they all have default values and can be left "undefined" so they should be optional in the types too.
@qtiki
Copy link
Author

qtiki commented Feb 18, 2020

I was going to open an issue about this but then I figured it's such an easy fix I'll just do the PR. Basically the types as they are now can break TypeScript compilation for users of this library when they update, which is what happened to us. We are using only the cwd option but the compiler throws an error about it.

@tianhuil
Copy link

tianhuil commented Apr 8, 2020

@Klathmon -- any update on this?

@scottbot95
Copy link

Any update on this? I'm currently using patch-package to patch this fix in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants