Skip to main content
Version: 2.0.0

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 Record<string, any> = any
AdditionalKeyextends string = string
UserTypeextends User = User

Parameters

NameType
collectionEntityCollection<M, AdditionalKey, UserType>

Returns

EntityCollection<M, AdditionalKey, UserType>

Defined in

packages/firecms/src/core/builders.ts:29

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!