ResourceInterface.setSource() method
Set a source by key.
Signature:
setSource<K extends keyof TSources>(key: K, value: TSources[K]): ResourceInterface<TOptions, TSources>;
Parameters
Parameter |
Type |
Description |
---|---|---|
key |
K | |
value |
TSources[K] |
ResourceInterface<TOptions, TSources>