This commit is contained in:
@@ -104,7 +104,7 @@ export class EffectSchemaTraitExpressionBuilder<
|
|||||||
|
|
||||||
mutableEncoded() {
|
mutableEncoded() {
|
||||||
return new EffectSchemaTraitExpressionBuilder(
|
return new EffectSchemaTraitExpressionBuilder(
|
||||||
this.expressionSuperclass as S.Class<unknown, Fields, Readonly<I>, R, C, Inherited, Proto>,
|
this.expressionSuperclass as S.Class<unknown, Fields, Types.Mutable<I>, R, C, Inherited, Proto>,
|
||||||
this.expressionSuperclassStatic,
|
this.expressionSuperclassStatic,
|
||||||
this.expressionTraits,
|
this.expressionTraits,
|
||||||
)
|
)
|
||||||
@@ -112,7 +112,7 @@ export class EffectSchemaTraitExpressionBuilder<
|
|||||||
|
|
||||||
immutableEncoded() {
|
immutableEncoded() {
|
||||||
return new EffectSchemaTraitExpressionBuilder(
|
return new EffectSchemaTraitExpressionBuilder(
|
||||||
this.expressionSuperclass as S.Class<unknown, Fields, Types.Mutable<I>, R, C, Inherited, Proto>,
|
this.expressionSuperclass as S.Class<unknown, Fields, Readonly<I>, R, C, Inherited, Proto>,
|
||||||
this.expressionSuperclassStatic,
|
this.expressionSuperclassStatic,
|
||||||
this.expressionTraits,
|
this.expressionTraits,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ const userExp = effectSchemaExpression
|
|||||||
role: S.Union(S.Literal("User"), S.Literal("Admin")),
|
role: S.Union(S.Literal("User"), S.Literal("Admin")),
|
||||||
})
|
})
|
||||||
// .mutable()
|
// .mutable()
|
||||||
// .mutableEncoded()
|
.mutableEncoded()
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
@userExp.staticImplements
|
@userExp.staticImplements
|
||||||
@@ -43,6 +43,8 @@ export class User extends userExp.extends<User>() implements Implements<typeof u
|
|||||||
static aStaticMethodThatShouldBeInherited() {}
|
static aStaticMethodThatShouldBeInherited() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
User.Encoded
|
||||||
|
|
||||||
const user = new User({ id: 0n, role: "User" })
|
const user = new User({ id: 0n, role: "User" })
|
||||||
// user.id = 0n
|
// user.id = 0n
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user