viewModelCachingMiddleware

Source
import { viewModelCachingMiddleware } from "@prestojs/rest";
viewModelCachingMiddleware<ReturnT = any>(viewModelMapping,?options)
Source

Arguments:

ArgumentTypeDescription
options
An object with the properties below
options.deleteViewModelViewModelConstructor|
options.getDeleteId
Returns:ViewModelCachingMiddleware