Roman Savaryn

Results 8 comments of Roman Savaryn

This is more succinct and passes the test cases: ```ts type Diff = { [P in Exclude]: (O & O1)[P]; }; ```

Removing the lone letter z from everywhere is such a slippery slope. I bet for every letter in the alphabet there is a dictator who is committing or has committed...

I am running into the same issue. Mine is an object schema like this: ```ts export const urlQueryParams = z.object({ queryParam1: z.preprocess( (value) => normalizeIntegerPriceAmount(value), z.number().positive().max(1000), ), // good -...

Indeed, `withFallback` is working exactly as desired: ```ts const urlQueryParams = z.object({ queryParam1: z.preprocess( (value) => Number(value) / 100, z.number().positive().max(1000) ), // good - has transformation queryParam2: z.string(), queryParam3: z.string(),...

@scotttrinh, do you know what is needed to incorporate the suggested `withFallback` API into the library, so that we don't need to replicate the definition of it in every project?

@tannerlinsley, thank you for taking a look. I too am still seeing this issue in `1.15.22`.

A version that is a few characters shorter - `keyof F | keyof S` is the same as `keyof F & S`. But I could be missing something. :) ```ts...

Hi, @skovhus. Thanks for reviewing this merge request. Can you please merge it? I'm hitting this issue too and would love to get this fix. Thank you. And thank you,...