idonttrustlikethat icon indicating copy to clipboard operation
idonttrustlikethat copied to clipboard

Validation for TypeScript

Results 7 idonttrustlikethat issues
Sort by recently updated
recently updated
newest added

The aim of this fix is to improve meta tagging for **dictionary** and **discriminatedUnion** validators.

For the following code : ```typescript const validator1 = object({ discriminant: literal("A") }) .map(v => ({...v, uniqueA2: "someValue"})) // this map create an error in the discrimintedUnion const validator2 =...

Bumps [semver](https://github.com/npm/node-semver) from 5.6.0 to 5.7.2. Release notes Sourced from semver's releases. v5.7.2 5.7.2 (2023-07-10) Bug Fixes 2f8fd41 #585 better handling of whitespace (#585) (@​joaomoreno, @​lukekarrys) Changelog Sourced from semver's...

dependencies

As a maintainer of https://github.com/nielk/idonttrustlikethat-fast-check I got troubles to figure out how to convert idtlt dictionary into [fast-check Arbitrary](https://fast-check.dev/docs/core-blocks/arbitraries/). The main reason is that `idtlt.dictionary(union('Foo', 'Bar'), number)` returns only meta...

It would be great if we had a version of `discriminatedUnion` that would return an `ObjectValidator` (or a subtype) so the result can be used in another `discriminatedUnion`. That would...