Skip to main content
Version: 2.0.0-alpha

Function: buildCollection

buildCollection<M, AdditionalKey, UserType>(collection): EntityCollection<M, AdditionalKey, UserType>

Identity function we use to defeat the type system of Typescript and build collection views with all its properties

Type parameters

NameType
Mextends Object = any
AdditionalKeyextends string = string
UserTypeextends User = User

Parameters

NameType
collectionEntityCollection<M, AdditionalKey, UserType>

Returns

EntityCollection<M, AdditionalKey, UserType>

Defined in

lib/src/core/builders.ts:28