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 372e3ac commit 4dd1818Copy full SHA for 4dd1818
1 file changed
express-zod-api/src/zod-plugin.ts
@@ -72,10 +72,7 @@ const deprecationSetter = function (this: z.ZodType) {
72
});
73
};
74
75
-const labelSetter = function (
76
- this: z.ZodDefault<z.ZodTypeAny>,
77
- defaultLabel: string,
78
-) {
+const labelSetter = function (this: z.ZodDefault, defaultLabel: string) {
79
const { [metaSymbol]: internal = { examples: [] }, ...rest } =
80
this.meta() || {};
81
return this.meta({
@@ -165,9 +162,9 @@ if (!(metaSymbol in globalThis)) {
165
162
166
163
Object.defineProperty(
167
164
z.ZodDefault.prototype,
168
- "label" satisfies keyof z.ZodDefault<z.ZodTypeAny>,
+ "label" satisfies keyof z.ZodDefault,
169
{
170
- get(): z.ZodDefault<z.ZodTypeAny>["label"] {
+ get(): z.ZodDefault["label"] {
171
return labelSetter.bind(this);
172
},
173
0 commit comments