ViewModelCache
Sourceimport { ViewModelCache } from "@prestojs/viewmodel";
ViewModelCache<ViewModelClassType>
Constructor
Methods
Documentation for each typescript overload shown below:
Returns:T
Returns:PartialViewModel
Documentation for each typescript overload shown below:
Returns:T[]
Returns:PartialViewModel[]
Documentation for each typescript overload shown below:
Returns:() => void
Arguments:
Argument | Type | Description | |
---|---|---|---|
* | pk | PkType | |
* | fieldNames | T[] | |
* | listener | (previous?: T | null | undefined, next?: T | null | undefined) => void | |
batch | boolean |
Returns:() => void
Arguments:
Argument | Type | Description | |
---|---|---|---|
* | pks | PkType[] | |
* | fieldNames | T[] | |
* | listener | (previous?: (T | null)[] | undefined, next?: (T | null)[] | undefined) => void | |
batch | boolean |
Returns:() => void
Documentation for each typescript overload shown below:
Arguments:
Argument | Type | Description | |
---|---|---|---|
* | pks | PkType[] | |
* | fieldNames | T[] | |
* | listener | (previous?: (T | null)[] | undefined, next?: (T | null)[] | undefined) => void |
Returns:() => void
Returns:boolean
Returns:void
Documentation for each typescript overload shown below:
Returns:null|PartialViewModel
Arguments:
Argument | Type | Description | |
---|---|---|---|
* | record | PartialViewModel |
Returns:null|PartialViewModel
Documentation for each typescript overload shown below:
Returns:PartialViewModel[]
Returns:PartialViewModel[]
Documentation for each typescript overload shown below:
Returns:PartialViewModel[]|(null|PartialViewModel)[]
Returns:T[]|(null|T)[]