arcanis / clipanion

Type-safe CLI library / framework with no runtime dependencies
https://mael.dev/clipanion/
1.1k stars 61 forks source link

Update to TypeScript 4.8 #131

Closed Ayc0 closed 1 year ago

Ayc0 commented 1 year ago

In TS 4.8, they changed the fact that generic have to be contraints to be able to be assigned to objects.

https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/#unconstrained-generics-no-longer-assignable-to

This PR:

Tests

It can build: image

And the tests pass:

image

Also the type inference seems okay:

image image image
arcanis commented 1 year ago

Released in 3.2.0-rc.14