This commit is contained in:
@@ -42,7 +42,7 @@ export class EffectSchemaInitialTraitExpressionBuilder {
|
|||||||
|
|
||||||
extends<
|
extends<
|
||||||
Super extends StaticMembers<S.Class<Self, Fields, I, R, C, Inherited, Proto>>,
|
Super extends StaticMembers<S.Class<Self, Fields, I, R, C, Inherited, Proto>>,
|
||||||
Self,
|
Self extends object,
|
||||||
Fields extends S.Struct.Fields,
|
Fields extends S.Struct.Fields,
|
||||||
I, R, C,
|
I, R, C,
|
||||||
Inherited extends object,
|
Inherited extends object,
|
||||||
@@ -56,15 +56,7 @@ export class EffectSchemaInitialTraitExpressionBuilder {
|
|||||||
annotations?: S.Annotations.Schema<unknown>,
|
annotations?: S.Annotations.Schema<unknown>,
|
||||||
) {
|
) {
|
||||||
return new EffectSchemaTraitExpressionBuilder(
|
return new EffectSchemaTraitExpressionBuilder(
|
||||||
superclass.extend<unknown>(identifier)(fields, annotations) as S.Class<
|
superclass.extend<unknown>(identifier)(fields, annotations),
|
||||||
unknown,
|
|
||||||
Fields & NewFields,
|
|
||||||
I & S.Struct.Encoded<NewFields>,
|
|
||||||
R | S.Struct.Context<NewFields>,
|
|
||||||
C & S.Struct.Constructor<NewFields>,
|
|
||||||
Self,
|
|
||||||
Proto
|
|
||||||
>,
|
|
||||||
|
|
||||||
{} as Simplify<
|
{} as Simplify<
|
||||||
Omit<Super,
|
Omit<Super,
|
||||||
|
|||||||
@@ -54,8 +54,6 @@ const adminExp = effectSchemaExpression
|
|||||||
// .immutable()
|
// .immutable()
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
type T = InspectSchemaClass<typeof adminExp.superclass>
|
|
||||||
|
|
||||||
@adminExp.staticImplements
|
@adminExp.staticImplements
|
||||||
export class Admin extends adminExp.extends<Admin>() implements Implements<typeof adminExp> {
|
export class Admin extends adminExp.extends<Admin>() implements Implements<typeof adminExp> {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user