ts-belt
ts-belt copied to clipboard
🔧 Fast, modern, and practical utility library for FP in TypeScript.
Fixes https://github.com/mobily/ts-belt/issues/94. Note that several of the tests currently fail.
It appears that the functions `AR.isOk` and `AR.isError` are defined in the typescript definitions here: https://github.com/mobily/ts-belt/blob/c825d9709de1e5d15b1b362429e0cee56c96c516/src/AsyncResult/AsyncResult.ts#L59-L65 however they are not implemented in the [underling Rescript](https://github.com/mobily/ts-belt/blob/master/src/AsyncResult/AsyncResult.res). this means that calling one...
In version 3.13.1 the annotations for Array.range say: ``` /** Returns a new array of numbers from `start` (inclusive) to `finish` (exclusive). */ ``` On https://mobily.github.io/ts-belt/api/array/ the docs say: ```...
why not `Do Notation` and `Applicative` i need `Array` to `Option` if Array some None return should be None, otherwise be Some
When an union of `Error` and/or `Ok` is provided to a function like `R.isOk`, it will not accept the input, even though the code will run. This makes it a...
## Example The following code is deemed type-safe by TypeScript: ```ts // Without the IIFE, Typescript restricts the type to null, even with an explicit type const user = (():...
Hi, I'm no expert, this is just an experiment I made using the code from ts belt. https://github.com/icetbr/experiments/tree/main/perf/packages/arguments Quoting from my repo: ```js const filterArgs = function () { var...
Based on the current definition: ```ts function toPairs(dict: Record): Array ``` The first element in each pair is a `string` but it should use the generic type `K`. For example:...
Hi Marcin! How hard would it be to update the build pipeline to make namespaces extendable? I mean this: **lib/string.ts** (reexport + extra helpers) ```ts export * from "@mobily/ts-belt/String" //...
In a previous project I used `fp-ts` which has `match` and a less strict [`matchW`](https://gcanti.github.io/fp-ts/modules/Either.ts.html#matchw) (short for widening). I'm not necessarily suggesting to add this (though it would be nice...