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

fix: set withOptions return type to include correct properties #157

Merged
merged 2 commits into from
Feb 19, 2021
Merged

fix: set withOptions return type to include correct properties #157

merged 2 commits into from
Feb 19, 2021

Conversation

iguessitsokay
Copy link
Contributor

@iguessitsokay iguessitsokay commented Feb 16, 2021

Current behavior:

withOptions return type

  • does contain callAsync, which doesn't exist
  • doesn't contain tapAsync or tapPromise, which does exist

Expected behavior:

withOptions return type

  • should be limited to return value in source
  • should include properties depends on the current child instance

related withOptions source code:

return {

Current behavior:

withConfig return type
- does contain callAsync, which doesn't exist
- doesn't contain tapAsync or tapPromise, which does exist

Expected behavior:

withConfig return type
- should be limited to return value in source
- should include properties depends on the current child instance

related withConfig source code: https://github.com/webpack/tapable/blob/413fa785018406464963c29d172e06d2df42f22e/lib/Hook.js#L105
@iguessitsokay iguessitsokay changed the title fix: set withConfig return type to include correct properties fix: set withOptions return type to include correct properties Feb 16, 2021
tapable.d.ts Outdated Show resolved Hide resolved
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
@sokra sokra merged commit acd0a66 into webpack:master Feb 19, 2021
@sokra
Copy link
Member

sokra commented Feb 19, 2021

Thanks

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.

2 participants