Ben Durrant

Results 147 comments of Ben Durrant

would `copyWithStructuralSharing` not run into the same performance issues with large data?

@Innders can you make a minimal reproduction of that? i've never experienced that personally

hmm, what's the benefit of switching away from console-testing-library?

> Do you know if Zod offers such a schema? not to my knowledge, no - JSON schema has patternProperties which is similar > How about calling it recordWithPatterns or...

Ah, the rest argument is necessary, because these two types behave differently: ```ts type Unmerged = { [key: `foo(${string})`]: string; [key: `bar(${string})`]: number; } & { [key: string]: boolean; }...

that does still leave the question of what to do when a key doesn't match any of the patterns: ```ts const parsed = v.parse( v.recordWithPatterns([ [v.pipe(v.string(), v.startsWith("foo-")), v.string()], ]), {...

**Size Change:** +99 B (+2.13%) **Total Size:** 4.76 kB | Filename | Size | Change | | :--- | :---: | :---: | | `dist/redux.legacy-esm.js` | 4.76 kB | +99...

> Excited for this. Do you think this needs a type test as well? can do - combineReducers doesn't really have one as far as i can tell, so i...

i'm leaning towards the config object - though are there many actions in Valibot that accept one?

generally i think config objects are more futureproof, and make it easier to provide different optional options without needing to provide others