Skip to content

breeze-client / PropertyPath

Type Alias: PropertyPath<T> ​

PropertyPath<T> = Entity extends T ? string : RawPropertyPath<T>

Defined in: src/query/property-path.ts:126

The property paths of T that name a comparable value - 'companyName', 'customer.city' - as a union of string literals, so a misspelling is a compile error and an editor can complete them.

Entity extends T is the guard. It is true only when T is any or bare Entity, which is what an untyped query has; this is then plain string and nothing is restricted, exactly as before. The same shape as QueriedAs.

Collections are absent, because a collection is filtered with any or all rather than compared

Type Parameters ​

T ​

T

Released under the MIT License.