MutableClass work
This commit is contained in:
@@ -1,9 +1,26 @@
|
|||||||
import { Schema as S } from "@effect/schema"
|
import { Schema as S } from "@effect/schema"
|
||||||
import type { Annotations, Struct } from "@effect/schema/Schema"
|
import type { Annotations, Class, Struct } from "@effect/schema/Schema"
|
||||||
|
import type { StaticType } from "../../../StaticType"
|
||||||
import type { TMutableClass } from "./TMutableClass"
|
import type { TMutableClass } from "./TMutableClass"
|
||||||
import type { HasFields } from "./util"
|
import type { HasFields } from "./util"
|
||||||
|
|
||||||
|
|
||||||
|
export interface IMutableClass<
|
||||||
|
Self,
|
||||||
|
Fields extends Struct.Fields,
|
||||||
|
I, R, C,
|
||||||
|
Inherited,
|
||||||
|
Proto,
|
||||||
|
>
|
||||||
|
extends Omit<
|
||||||
|
StaticType<Class<Self, Fields, I, R, C, Inherited, Proto>>,
|
||||||
|
"extend"
|
||||||
|
>
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
export function MutableClass<Self>(identifier: string) {
|
export function MutableClass<Self>(identifier: string) {
|
||||||
return <Fields extends Struct.Fields>(
|
return <Fields extends Struct.Fields>(
|
||||||
fieldsOr: Fields | HasFields<Fields>,
|
fieldsOr: Fields | HasFields<Fields>,
|
||||||
|
|||||||
Reference in New Issue
Block a user