You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interfaceObservable<T>{(): T;(value: T): any;}functionobservable<T>(value: T): Observable<T>{returnundefinedasany;// the implementation is not important}constx: Observable<boolean>=observable(false);
🙁 Actual behavior
Type 'Observable<false>' is not assignable to type 'Observable<boolean>'.Typesofparameters 'value' and'value'areincompatible.Type'boolean'isnotassignabletotype'false'.
Bug Report
Since 4.6 TS is complaining about that
falseis not assignable toboolean, when it is "wrapped by interface".🔎 Search Terms
4.6 type
🕗 Version & Regression Information
⏯ Playground Link
Playground Link
💻 Code
🙁 Actual behavior
🙂 Expected behavior
No compiler problem as in previous versions.