You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For type safety, it would be great if this package were compatible with the Webpack type of mainFields, foregoing the need for type assertions. Thanks!
The text was updated successfully, but these errors were encountered:
The type of
mainFields
is set tostring[]
in a few places, including the signature ofcreateMatchPathAsync
.The correct type is
(string | string[])[]
:https://github.com/webpack/webpack/blob/9fcaa243573005d6fdece9a3f8d89a0e8b399613/types.d.ts#L9767
This test case confirms the type is correct:
https://github.com/webpack/webpack/blob/9fcaa243573005d6fdece9a3f8d89a0e8b399613/test/TestCases.template.js#L149-L156
For type safety, it would be great if this package were compatible with the Webpack type of
mainFields
, foregoing the need for type assertions. Thanks!The text was updated successfully, but these errors were encountered: