(
values: ToExclude,
newDef: RawCreateParams = this._def
)
| 4148 | } |
| 4149 | |
| 4150 | exclude<ToExclude extends readonly [T[number], ...T[number][]]>( |
| 4151 | values: ToExclude, |
| 4152 | newDef: RawCreateParams = this._def |
| 4153 | ): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>> { |
| 4154 | return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)) as FilterEnum<T, ToExclude[number]>, { |
| 4155 | ...this._def, |
| 4156 | ...newDef, |
| 4157 | }) as any; |
| 4158 | } |
| 4159 | |
| 4160 | static create = createZodEnum; |
| 4161 | } |