Presto
GitHub
Getting Started
Packages
View Model
BaseViewModel
isViewModelClass
isViewModelInstance
viewModelFactory
Async Choices
AsyncChoices
AsyncChoicesInterface
useAsyncChoices
Caching
useViewModelCache
ViewModelCache
Errors
InvalidFieldError
MissingFieldsError
Fields
BooleanField
CharField
DateField
DateRangeField
DateTimeField
DateTimeRangeField
DecimalField
DecimalRangeField
EmailField
Field
FileField
FloatField
FloatRangeField
ImageField
IntegerField
IntegerRangeField
JsonField
ListField
ManyRelatedViewModelField
NumberField
PasswordField
RangeField
RelatedViewModelField
TextField
TimeField
URLField
Utils
normalizeFields
ViewModelFieldPaths
Final Form
REST
Routing
UI
UI ANTD
Util
On this page
API
Methods
prepareStackTrace
Properties
message
name
stack
Static Methods
captureStackTrace
Static Properties
stackTraceLimit
InvalidFieldError
Source
import { InvalidFieldError } from "@prestojs/viewmodel";
API
Show inherited
Constructor
new InvalidFieldError
(
?message
)
Source
Arguments:
Argument
Type
Description
message
string
Methods
prepareStackTrace
(
err
,
stackTraces
)
Source
Arguments:
Argument
Type
Description
*
err
Error
*
stackTraces
CallSite
[]
Returns:
any
Properties
message
Source
string
name
Source
string
stack
Source
string
Static Methods
captureStackTrace
(
targetObject
,
?constructorOpt
)
Source
Arguments:
Argument
Type
Description
*
targetObject
object
constructorOpt
Function
Returns:
void
Static Properties
stackTraceLimit
Source
number