Skip to content

Improve TS type ergonomics, dropping the Strict generic flag - #719

Merged
eemeli merged 1 commit into
mainfrom
fix-ts
Sep 13, 2026
Merged

eemeli merged 1 commit into
mainfrom
fix-ts

Conversation

@eemeli

@eemeli eemeli commented Sep 13, 2026

Copy link
Copy Markdown
Owner

The changes in #655 in particular have reduced the type variability for many parts of the document-level API, so the Strict generic type flag doesn't really do much any more, and is adding complexity rather than reducing it. Also, we can improve the document-level .get() and .getPair() typing to be more precise, even if TS isn't really happy in the implementation.

@eemeli

eemeli commented Sep 13, 2026

Copy link
Copy Markdown
Owner Author

The CodeQL alert is about code that's not touched here at all, so ignoring for now.

@eemeli
eemeli merged commit a8b17da into main Sep 13, 2026
19 of 20 checks passed
@eemeli
eemeli deleted the fix-ts branch September 13, 2026 12:19
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.

1 participant