Framework
createModel()
Function: createModel()
function createModel<T>(
name,
schemaFields,
adapter,
options?): FlashcoreModel<T>Create a FlashcoreModel instance.
Type Parameters
| Type Parameter |
|---|
T extends { id: string; } |
Parameters
| Parameter | Type |
|---|---|
name | string |
schemaFields | SchemaFields |
adapter | FlashcoreAdapter<string, unknown> |
options? | FlashcoreModelOptions |
