mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Revert "feat(ui): extend zod with a is
typeguard` method"
This reverts commit 0f45933791
.
This commit is contained in:
parent
6c1fd584d2
commit
d8557d573b
@ -1,8 +0,0 @@
|
||||
import { assert } from 'tsafe';
|
||||
import { z } from 'zod';
|
||||
|
||||
assert(!Object.hasOwn(z.ZodType.prototype, 'is'));
|
||||
|
||||
z.ZodType.prototype.is = function (val: unknown): val is z.infer<typeof this> {
|
||||
return this.safeParse(val).success;
|
||||
};
|
@ -1,5 +1,3 @@
|
||||
import 'extend-zod';
|
||||
|
||||
import ReactDOM from 'react-dom/client';
|
||||
|
||||
import InvokeAIUI from './app/components/InvokeAIUI';
|
||||
|
@ -1,8 +0,0 @@
|
||||
import 'zod';
|
||||
|
||||
declare module 'zod' {
|
||||
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
||||
export interface ZodType<Output = any> {
|
||||
is(val: unknown): val is Output;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user