Skip to content

Comments

fix: a lot of types#18647

Merged
alexander-akait merged 3 commits intomainfrom
more-types
Aug 6, 2024
Merged

fix: a lot of types#18647
alexander-akait merged 3 commits intomainfrom
more-types

Conversation

@alexander-akait
Copy link
Member

@alexander-akait alexander-akait commented Aug 6, 2024

What kind of change does this PR introduce?

bugfix, we need strict value for typescript to catch possible problems (around 1400 problems still need to fix)

Did you add tests for your changes?

No need

Does this PR introduce a breaking change?

No

What needs to be documented once your changes are merged?

No

@webpack-bot
Copy link
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

@alexander-akait alexander-akait merged commit 13560ea into main Aug 6, 2024
@alexander-akait alexander-akait deleted the more-types branch August 6, 2024 15:38
Comment on lines +15 to +17
/**
* @param {(string | string[] | Record<string, string>)[]} keys keys
*/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexander-akait Hi there, it seems like this PR broke the types for EnvironmentPlugin. According to docs, both undefined and null are accepted as values (and have different behavior), however with this change it is no longer allowed to pass null: (playground link)

image

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filed #18719

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR: #18715

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants