0.1.21 #21

Merged
Thilawyn merged 23 commits from next into master 2024-05-12 01:11:51 +02:00
2 changed files with 2 additions and 12 deletions
Showing only changes of commit 7cb7981854 - Show all commits

View File

@@ -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,

View File

@@ -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> {
} }