hotscript
hotscript copied to clipboard
A library of composable functions for the type-level! Transform your TypeScript types in any way you want using functions you already know.
We should add some tooling to easily compare how changes affect type-checking performance
It seems the the readme is currently out of date on this and that T.Create is no longer part of the public API, at least as far as i can...
Hi! I noticed that `Negate` returns `number | bigint` and I'd expect it to return `0` (doesn't seem like TypeScript has `-0`, which is fine by me). ```ts import {...
I think it might be useful to export `unset`
There is a function `Objects.Partial` but it turns all properties on an object to optional. Would be nice to have a version that targets a specific property: `Objects.SetPropertyOptional`.
When working with type computation, it is generally useful to use a "simplify" type utility to compute the final result so that e.g. IDEs show something more useful to end-users....
The feature request is to make this possible: ```ts $ // $ExpectType {path: 1} ``` That would be a breaking change, and doesn't support going the other direction. So probably...
Introduces a few nice functions ```ts type res1 = Call< // ^? "object.nested" | "tuple[0]" | "tuple[1]" Objects.TerminalPaths, { object: { nested: boolean; }; tuple: [0, 1]; >; ``` ```ts...
Document says ```ts interface IsNumber extends Fn { return: this["arg0"] extends number ? true : false; } type T0 = Call; // ^? { true: [1, 2], false: ["str"] }...
Hey there! Thanks for the repo, it's very nice, just as your course (passed it and liked a lot!). We at Evil Martians have plans to extend our nanostores ecosystem...