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
{{ message }}
Repository navigation
Consider adoption of exactOptionalPropertyTypes ts-compiler option #2069
Is your feature request related to a problem? Please describe.
I ran into quite some problems when trying to include blocknote in my codebase, where I have the typescript flag exactOptionalPropertyTypes enabled. Just to name a few:
All code published as @blocknote/* should be compiled with exactOptionalPropertyTypes enabled to avoid both errors within the library, but also to compile in projects having this flag enabled.
Describe alternatives you've considered
The project could be compiled without, but ensure that the exported types do work in repos with this rule enabled.
This option (while being quicker in the start) will cause quite some friction every time a type is changed and doesn't match the requirements of exactOptionalPropertyTypes.
I could disable the rule, but I would like keeping all the recommended rules enabled.
Additional context
-/-
Bonus
I'm a sponsor and would appreciate if you could look into this sooner than later 💖
Activity
nperez0111 commentedon Oct 6, 2025
Another alternative here would be to not be type-checking library code (which is bad practice & slower).
It would take us a long time to refactor types to
exactOptionalPropertyTypes, for very little benefit, so I don't see us taking this on for a while.SimonSimCity commentedon Oct 6, 2025
Do you hereby mean to enable
skipLibCheck? This has already been switched on in the stackblitz-demos, but I still get type-errors.