Skip to content

Type Alias: View<T, S> ​

View<T, S> = Readonly<{[viewTag: `__fate-view__${string}`]: Readonly<{ [ViewKind]: true; definition?: string; select: S; }>; }> & __ViewEntityAnchor<T> & __ViewSelectionAnchor<S>

Defined in: fate/src/types.ts:310

Definition of a view over an entity type, including the selection of fields.

Type Parameters ​

T ​

T extends Entity

S ​

S extends Selection<T> = Selection<T>

Released under the MIT License