Constructors
constructor
- new Model(presenter: function, validationMethod: function): Model
-
Parameters
-
presenter: function
-
validationMethod: function
-
- (props: T, oldProps?: T): T
-
Parameters
-
props: T
-
Optional oldProps: T
Returns T
Properties
presenter
presenter: function
validator
validator: function
Type declaration
-
- (props: T, oldProps?: T): T
-
Parameters
-
props: T
-
Optional oldProps: T
Returns T
Methods
present
- present(newProps: T): any
A Model is a class that holds the data object for an application as well as a presenter class function which is used to call the state update method
Model
T the class that defines the shape of the data