This commit is contained in:
@@ -104,6 +104,17 @@ class TraitExpressionBuilder<
|
||||
then<V>(fn: (expression: ReturnType<typeof this.build>) => V): V {
|
||||
return fn(this.build())
|
||||
}
|
||||
|
||||
buildAnyway() {
|
||||
return new TraitExpression(
|
||||
this.expressionSuperclass,
|
||||
this.expressionTraits,
|
||||
)
|
||||
}
|
||||
|
||||
thenAnyway<V>(fn: (expression: ReturnType<typeof this.buildAnyway>) => V): V {
|
||||
return fn(this.buildAnyway())
|
||||
}
|
||||
}
|
||||
|
||||
export const expression = new TraitExpressionBuilder(TraitExpression.NullSuperclass, [])
|
||||
|
||||
Reference in New Issue
Block a user