mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-05 15:17:32 +08:00
More tests and fixed
This commit is contained in:
@@ -36,8 +36,8 @@ export default class Entity3 extends IEntity {
|
||||
lima: StringEntity,
|
||||
mike: AlternativesEntity.accepting(NumberEntity, StringEntity, ArrayEntity).withDefault(type => new StringEntity("Bar")),
|
||||
november: AlternativesEntity.accepting(NumberEntity, StringEntity, ArrayEntity).withDefault(type => new NumberEntity(0)),
|
||||
oscar: Entity1.withDefault(() => new Entity1()),
|
||||
papa: Entity1.withDefault(() => new Entity1({ a: 12, b: 13 })),
|
||||
oscar: Entity1.withDefault(type => new type()),
|
||||
papa: Entity1.withDefault(type => new type({ a: 12, b: 13 })),
|
||||
quebec: NumberEntity.withDefault(), // will assign undefined because it does not satisfy the predicate,
|
||||
romeo: Entity1.withDefault().flagInlined(),
|
||||
sierra: Entity2.withDefault().flagInlined(),
|
||||
|
||||
Reference in New Issue
Block a user