I tried making a tuple of two booleans to place in my BehaviorSubject
private someBehaviorSubject: BehaviorSubject<[boolean, boolean]> = new BehaviorSubject([false, false]);
but I get a compilation error saying:
Type 'BehaviorSubject<boolean[]>' is not assignable to type 'BehaviorSubject<[boolean, boolean]>'
How can I create a tuple of two booleans, and initialize the BehaviorSubject properly? It seems to think [false, false] is of type boolean[] and not a tuple where index 0, and index 1 are required to be booleans.
Typescript version: 2.3.3
BehaviorSubject from rxjs v5.0.1