Skip to content

Commit 2807ae1

Browse files
committed
rm loosy type.
1 parent 452ead1 commit 2807ae1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

express-zod-api/src/zod-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const objectMapper = function (
140140
);
141141
const hasPassThrough = this._zod.def.catchall instanceof z.ZodUnknown;
142142
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
143+
return this.transform(transformer).pipe(output);
144144
};
145145

146146
if (!(metaSymbol in globalThis)) {

0 commit comments

Comments
 (0)