'how to define the type of an observer in typescript
Typescript is asking me to type my observer variable :
Observer.create(observer: whatTypeShouldIUse => /* do things with observer */)
I tried using the Observer class or interface from the rxjs library, but it's a generic type.
What type should I put for my observer ? I put Observer<any> for now...
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
