Presto
GitHub
Getting Started
Guides
Packages
View Model
BaseViewModel
isViewModelClass
isViewModelInstance
viewModelFactory
Async Choices
AsyncChoices
AsyncChoicesInterface
useAsyncChoices
Caching
useViewModelCache
ViewModelCache
Errors
InvalidFieldError
MissingFieldsError
Fields
BooleanField
CharField
CurrencyField
DateField
DateRangeField
DateTimeField
DateTimeRangeField
DecimalField
DecimalRangeField
DurationField
EmailField
Field
FileField
FloatField
FloatRangeField
ImageField
IntegerField
IntegerRangeField
IPAddressField
JsonField
ListField
ManyRelatedViewModelField
NullableBooleanField
NumberField
PasswordField
RangeField
RelatedViewModelField
SlugField
TextField
TimeField
URLField
UUIDField
Utils
normalizeFields
ViewModelFieldPaths
Final Form
REST
Routing
UI
UI ANTD
Util
On this page
Arguments
isViewModelClass
Source
import { isViewModelClass } from "@prestojs/viewmodel";
isViewModelClass
<
T
>
(
cls
)
Arguments:
Argument
Type
Description
*
cls
any
Returns:
boolean