Anna Bocharova

Results 204 comments of Anna Bocharova

This one is merged https://github.com/DefinitelyTyped/DefinitelyTyped/pull/72159 . So that this copy is identical to `@types/[email protected]` now.

DT also has tests for the types and I'm thinking about having ones here as well. However, I'd need to make some adjustments in order to minimize the dependencies required...

> Are these types identical to @types/express on NPM from DefinitelyTyped? Yes, https://github.com/expressjs/express/pull/6382#discussion_r1994130864 > ```ts > // TS2769: No overload matches this call. > router.get("/test", (request: Request, response: Response) =>...

It won't be merged until Express 6, @xPuls3. So I think you're safe for about a decade.

Though, it can be possibly worked around by doing a transformation ahead, but without coercion in the pipe ```ts z.string().regex(/\d+/).transform(Number).pipe(z.number()) ```

Found out that `.transform()` in Zod 4 already makes `ZodPipe` instance, so another `.pipe()` is probably redundant

The problem with that approach, @samchungy , is that `toJSONSchema` decides itself which schemas it meets frequently enough to extract them into a reference (I'm dealing with circular ones in...

same about `isNullable` ```ts const f = z.coerce.bigint(); f.isNullable(); ``` despite the fact that `.isNullable()` calls `.safeParse()`. I think the confusion comes from the expectation that coerce is expected to...

looks like this issue will be fixed in Zod 4 — it does not throw in this case. Though, for `z.coerce.bigint().isOptional()` would return `false`, while `z.coerce.boolean().isOptional()` is `true`