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: enable strict mode #164

Merged
merged 1 commit into from
Nov 18, 2024
Merged

fix: enable strict mode #164

merged 1 commit into from
Nov 18, 2024

Conversation

arturovt
Copy link
Contributor

In this commit, we enable strict mode because it is required to generate correct type definition (.d.ts) files. These files differ depending on whether strict mode is enabled or disabled. Enabling strict mode allows null|undefined values to be provided by the parent component (e.g., [tp]="null", which should be allowed), but the compiler removes null|undefined values from the binding.

We also had to patch the @popperjs/core types due to a mistake in their definitions. This patch was necessary for successful compilation.

Copy link

stackblitz bot commented Nov 17, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

In this commit, we enable strict mode because it is required to generate correct type definition
(`.d.ts`) files. These files differ depending on whether strict mode is enabled or disabled.
Enabling strict mode allows `null|undefined` values to be provided by the parent component
(e.g., `[tp]="null"`, which should be allowed), but the compiler removes `null|undefined`
values from the binding.

We also had to patch the `@popperjs/core` types due to a mistake in their definitions.
This patch was necessary for successful compilation
@NetanelBasal NetanelBasal merged commit 057eddb into ngneat:master Nov 18, 2024
2 checks passed
@arturovt arturovt deleted the fix/strict branch November 18, 2024 07:44
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