I'm trying to find a way to type a rest parameter that takes an array of rxjs operators, which are essentially observables.
So far this is the implementation i have. Typescript isn't complaining but this isn't typed good enough.
testFunction(...args: any[]):BehaviorSubject<any>{
this.selector.pipe(...args, delay(1000)).subscribe();
}
The function should be able to take an infinite number of rxjs operators. Ex:
testFunction(take(1), skip(2), ...);
How would i be able to express that in typescript ?