note: the example I\'m giving uses rxjs, but I think the question is generally applicable to typescript:
As a starting point, I have a subject frame$
frame$