Function: createModel()
ts
function createModel<TModel, TFactoryArgs>(modelFactory: ModelFactory<TModel, TFactoryArgs>): ModelConstructor<TModel, TFactoryArgs>;Defined in: @preact/signals-core:
Type Parameters
| Type Parameter | Default type |
|---|---|
TModel | - |
TFactoryArgs extends any[] | [] |
Parameters
| Parameter | Type |
|---|---|
modelFactory | ModelFactory<TModel, TFactoryArgs> |
Returns
ModelConstructor<TModel, TFactoryArgs>