@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user