Artur Müller

Results 9 issues of Artur Müller

Hi — I noticed that the docs don't mention the ability to return strings, Failures, etc... from refinement functions to customize error messages. Is this intentional (ie. is this just...

docs

Bug ## What Albanian locale is not included for Chrome (which doesn't support this locale out of the box) ## Details Screenshot of polyfill.io response alongside console usage that's not...

service

## The Bug The issue was the [mutation of the input object/array](https://github.com/ianstormtaylor/superstruct/blob/03d65bd37d505d934db7cb48eed691fc41ecba7c/src/utils.ts#L185) while coercing entries inside the `run` util -- combined with a missing custom coercer which would clone its...

I mean this: ```ts partial({ id: number(), name: string(), }) ``` Happy to open a PR if this shorthand usage of `partial` is encouraged (ie. it is not an intentionally...

Bug ## What Albanian locale is not included for Chrome (which doesn't support this locale out of the box) ## Details Screenshot of polyfill.io response alongside console usage that's not...

library
service

> 👉 This PR can be tested via a pre-release version of Superstruct: `npm i [email protected]`. The goal of this PR is to fix Superstruct's compatibility with TypeScript's [NodeNext](https://www.typescriptlang.org/docs/handbook/modules/reference.html#node16-nodenext) module...

Superstruct tests are currently written in Mocha, which is starting to show its age. It would be great if we could move to something like Vitest. This has two goals:...

♥ help please

This should help us catch cases where data is accidentaly copied by reference (which leads to surprising and buggy behaviour).