Files
firecms/website/docs/api/functions/buildschema.md
2021-06-06 13:36:47 +02:00

721 B

id, title, sidebar_label, sidebar_position, custom_edit_url
id title sidebar_label sidebar_position custom_edit_url
buildschema Function: buildSchema buildSchema 0 null

buildSchema<Key>(schema): EntitySchema<Key>

Identity function we use to defeat the type system of Typescript and preserve the schema keys

Type parameters

Name Type
Key Key: string = string

Parameters

Name Type
schema EntitySchema<Key>

Returns

EntitySchema<Key>

Defined in

models/builders.ts:54