Skip to content

breeze-client / QueriedAs

Type Alias: QueriedAs<U> ​

QueriedAs<U> = Entity extends U ? any : U

Defined in: src/entity/entity-aspect.ts:70

The type of the results of a query built from entities you already have, such as EntityQuery.fromEntities or RelationArray.load: the entities' own class when it is known - QueriedAs<Customer> is Customer - and any when all that is known is Entity, so that results[0].companyName compiles without a cast.

Type Parameters ​

U ​

U

Released under the MIT License.