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
isViewModelInstance
Source
import { isViewModelInstance } from "@prestojs/viewmodel";
isViewModelInstance
<
T
>
(
object
)
Params:
Parameter
Type
Description
*
object
any
Returns:
boolean