LogoRobo.js
Framework

FlashcoreSchema

Interface: FlashcoreSchema

Schema namespace wrapper for plugin model registration.

Properties

PropertyModifierTypeDescription
namespacereadonlystringGet the namespace name.

Methods

model()

model<T>(
   name, 
   schema, 
options?): FlashcoreModel<T>

Register a model in this namespace.

Type Parameters

Type Parameter
T extends { id: string; }

Parameters

ParameterType
namestring
schemaSchemaFields
options?Omit<ModelOptions, "namespace">

Returns

FlashcoreModel<T>

On this page