Usage
- Javascript Import Format
- define(['ojs/ojdataprovider'], function(dataprovider) { // Application should call API on dataprovider.FetchByKeysMixin })
- Typescript Import Format
- //To import this namespace, use the format below.
 import {FetchByKeysMixin} from "ojs/ojdataprovider";
For additional information visit:
Methods
- 
        
    
    
      (static) applyMixin(derivedCtor: {new(): DataProvider<any, any>}): any;
- 
    
    
    Apply this mixin to another classParameters:Name Type Description derivedCtorfunction the constructor of an existing class ExamplesApply the mixin in Typescript: class CustomDataProvider<K, D> implements DataProvider<K, D> { // Add stand-in properties to satisfy the compiler containsKeys: (parameters: FetchByKeysParameters<K>) => Promise<ContainsKeysResults<K>>; fetchByKeys: (parameters: FetchByKeysParameters<K>) => Promise<FetchByKeysResults<K, D>>; constructor() { // Constructor implementation } } FetchByKeysMixin.applyMixin(CustomDataProvider);Apply the mixin in Javascript: function CustomDataProvider() { // Constructor implementation } FetchByKeysMixin.applyMixin(CustomDataProvider);