We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 452ead1 commit 2807ae1Copy full SHA for 2807ae1
1 file changed
express-zod-api/src/zod-plugin.ts
@@ -140,7 +140,7 @@ const objectMapper = function (
140
);
141
const hasPassThrough = this._zod.def.catchall instanceof z.ZodUnknown;
142
const output = (hasPassThrough ? z.looseObject : z.object)(nextShape); // proxies unknown keys when set to "passthrough"
143
- return this.transform(transformer as () => object).pipe(output); // @since zod 3.25.45 had to loosen transformer type
+ return this.transform(transformer).pipe(output);
144
};
145
146
if (!(metaSymbol in globalThis)) {
0 commit comments