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

Types/Doc mismatch for resourceQuery: { not: /regex/ } #13284

Closed
slorber opened this issue Apr 30, 2021 · 2 comments · Fixed by #13296
Closed

Types/Doc mismatch for resourceQuery: { not: /regex/ } #13284

slorber opened this issue Apr 30, 2021 · 2 comments · Fixed by #13296

Comments

@slorber
Copy link

slorber commented Apr 30, 2021

Bug report

What is the current behavior?

This is documented:

image

https://webpack.js.org/guides/asset-modules/#replacing-inline-loader-syntax

But using not only allows an array in TS:

https://github.com/webpack/webpack/blob/master/types.d.ts#L9336

image

And this is rejected in practice

image

If the current behavior is a bug, please provide the steps to reproduce.

See above

What is the expected behavior?

TS and doc are in sync, not sure which is wrong

Other relevant information:
webpack version: 5/master
Node.js version:
Operating System:
Additional tools:

@alexander-akait
Copy link
Member

Bug in types

@sokra
Copy link
Member

sokra commented Apr 30, 2021

You can send a PR to the options schema and regenerate types with yarn special-lint-fix

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

Successfully merging a pull request may close this issue.

4 participants