hotscript icon indicating copy to clipboard operation
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.

Results 40 hotscript issues
Sort by recently updated
recently updated
newest added

I figured we don't really need to worry about possible collisions with lodash since we are at the type level. `_` Makes partial expressions look much cleaner IMO. Before: ```ts...

Keeping it simple, only takes into account values up to the minimum of both array's length https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgGImQbwFDOaABwFcwAuZIkAaxAHsB3EAbl2VpOLIursZYF9s2MAE8CKAMJwANtIA8MDBAAekEABMAzmhAAafCE4A+ZAF5kACkXIAZFgOdyhEsn4BKANoAidmE5eAXRZsUEhYRBQALWACZBU1LR0sVl9HZDAAC2BNb2cwQLjVCA1tD1AYaGQ4KCgARkKE7UoaBhAPAP1yyuqoACYG4sTm3jaAgNY8AH5kDx7a-R7egIGSmbKQCqh8SABbeeQAOiOuragITTBajpmT7Ygd3v0jg9uzi6XxvC-kaY8y3f2wF2SyeRyksjk0QI+g8b0u+jhSyMn2+yHI7QmaOQIAgADdoNhBMIxCgAF4xAjidRmZDg+RQmEefYgmZgKBECD6eDSTQQMZGFgAekFXwAepMhKJxNw8dAoVSaXTITFGcz9ABma4eNkcrkyXn8oUivDioA

This optimization makes use of a self-memoizing cache in the string length algorithm which allows it to run on a logarithmic time scale. This allows us to get the length...

- added license - husky + pretty-quick + lint-staged --basically a commit hook that prettify staged changes --need to run `npx husky install` for the hook to work, or just...

- Swaps out custom test utilities for [Vitest typechecking](https://vitest.dev/guide/testing-types.html). - Adds GitHub Action workflow for test, build, typecheck - Deps: Adds Vitest, removes Jest, switches to [pnpm](https://pnpm.io) (happy to switch...

old way, use types to check types: ```ts import { Equal, Expect } from "../src/helpers"; type tes1 = Expect; ``` new way, use function to check types instead: ```ts import...

If we want this to be used, we will need to setup a good documentation website. What are the best tools to build technical docs these days?

We should have an error path in all pipeable functions so that they can throw when their input is incorrect. Not sure what this would look like yet.

I think an `Enumerate` and `Range` generic could be a nice addition to the Number/Tuple namespace. I've been using these generics to generate lists of unioned numbers (maybe this could...

The tuple trick to do number operations is really limited. I have a complete implementation here with no limitations but ts memory and compute power : https://github.com/ecyrbe/ts-calc But it would...