I am using a constant variable and then passing it to the shareReplay operator. If we do this, lint throws shareReplay is forbidden unless a config argument is passed. Replacing the variable with the object fixes the issues. shouldn't the type be infered?
const SHARE_REPLAY_CONFIG = { bufferSize: 1, refCount: true }; observable.pipe(shareReplay(SHARE_REPLAY_CONFIG))
I am using a constant variable and then passing it to the shareReplay operator. If we do this, lint throws
shareReplay is forbidden unless a config argument is passed
. Replacing the variable with the object fixes the issues. shouldn't the type be infered?