Just the other day, I was trying to incorporate the observer pattern into my Angular 4 application and came across this TypeScript code snippet. Unfortunately, I'm not quite sure what it means.
Here's the code:
module Patterns.Interfaces {
export interface IObservable {
RegisterObserver(Observer: Patterns.Interfaces.IObserver);//What does Patterns.Interfaces.IObserver type signify?
RemoveObserver(Observer: Patterns.Interfaces.IObserver);
NotifyObservers();
}
}
Any insights or assistance on this would be greatly appreciated!