Skip to content

remove overloads for adv type to 'fold' in all args - #21

Closed
jbolda wants to merge 2 commits into
project-tom-hagenfrom
improve-types-delta-fold
Closed

jbolda wants to merge 2 commits into
project-tom-hagenfrom
improve-types-delta-fold

Conversation

@jbolda

@jbolda jbolda commented Aug 28, 2026

Copy link
Copy Markdown
Member

Motivation

Maintaining type overloads isn't a great experience and we have a few more type tools to work with in more recent versions of TypeScript.

Approach

Some conditionals, extends and "variadic tuple" types get the job done. The types are "smaller" but more advanced. The error shape and IDE "look and feel" change. I think we have trade offs in each, but this does scale much further without having to consider adding more overloads. Depending on how our constraints change as we finalize everything may push us towards one set of trade offs vs another.

@pkg-pr-new

pkg-pr-new Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/configliere@21

commit: b2a841c

@cowboyd

cowboyd commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

superceded by #26

@cowboyd
cowboyd force-pushed the improve-types-delta-fold branch from 1e44350 to cffe20b Compare September 9, 2026 01:21
@cowboyd

cowboyd commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

brought in with #26

@cowboyd cowboyd closed this Sep 9, 2026
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