Tests
Some checks failed
Lint / lint (push) Failing after 12s

This commit is contained in:
Julien Valverdé
2024-07-27 02:47:30 +02:00
parent eb3f01bd5b
commit 7e90178126

View File

@@ -39,6 +39,18 @@ extends Omit<
} }
type MutableInput<
Self,
Fields extends Schema.Struct.Fields,
I, R, C,
Inherited,
Proto
> = Omit<Schema.Class<Self, Fields, I, R, C, Inherited, Proto>,
| "extend"
| "transformOrFail"
| "transformOrFailFrom"
>
export const Mutable = < export const Mutable = <
Self, Self,
Fields extends Schema.Struct.Fields, Fields extends Schema.Struct.Fields,
@@ -46,5 +58,5 @@ export const Mutable = <
Inherited, Inherited,
Proto Proto
>( >(
self: Schema.Class<Self, Fields, I, R, C, Inherited, Proto> self: MutableInput<Self, Fields, I, R, C, Inherited, Proto>
) => self as MutableClass<Self, Fields, I, R, C, Inherited, Proto> ) => self as MutableClass<Self, Fields, I, R, C, Inherited, Proto>