ViewModelType - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ViewModelType<TViewModel, TConstructorArgs> alias
Represents a view model type.
type ViewModelType<TViewModel extends INotifyPropertiesChanged, TConstructorArgs extends readonly any[] = []> = {
new (...constructorArgs: TConstructorArgs): TViewModel;
};
Source reference: src/hooks/UseViewModel.ts:11
.
-
TViewModel - The type of view model.
Type constraints: INotifyPropertiesChanged.
-
TConstructorArgs - The constructor parameter types, defaults to an empty tuple.