viewModelFactory
Sourceimport { viewModelFactory } from "@prestojs/viewmodel";
Params:
| Parameter | Type | Description | |
|---|---|---|---|
| * | fields | FieldMappingType | |
| * | options An object with the properties below | ||
| options.baseClass | Class | ||
| * | options.pkFieldName | string|string[] | |
Returns:ViewModelClass