rescript-core
rescript-core copied to clipboard
A drop-in standard library for ReScript. Intended to be familiar for JavaScript developers, easy to use, and be rich enough (without being bloated) so that you don't need to reach for anything else fo...
Adds `Option.all` & `Result.all` helpers. The API is inspired by `Promise.all` which is pretty well known by users. ```res Option.all([]) // Some([]) Option.all([Some(1), Some(2), Some(3)]) // Some([1, 2, 3]) Option.all([Some(1),...
When I compile rescript into JavaScript and have Node.js run it, I found that the `@rescript/core`was not set as a esmodule. When I manually changed the `package.json` in the `core`...
This PR is a proposal to add unit tests using docstrings. Currently the examples from docstrings have tests for compilation only. - `bsc` emits the Js and passes the code...
This PR add frequently used `setLastIndex` in javascript to RegExp
This can cause runtime crashes when the individual members are options. When you are using `Option.getExn` after an `Array.get` to get the value if you know the array is in...
Also fixes the documentation of `Math.Int.floor` since it's incorrect
Many JavaScript APIs have methods with trailing optional args and are currently bound in Core as multiple different functions for different argument counts. However, since ReScript 11, we can have...
I propose we ship complete fetch bindings in Core. This has a few reasons: 1. Fetch is as close as an industry standard as we'll get for making network requests....
This is for historical reasons (the `List` module is copied from Belt). For example: * List: `let forEach: (t 'b) => unit` * Others: `let forEach: (t unit) => unit`...