Property 'subscribe' in type 'ObservableMedia' is not assignable to the same property in base type 'Subscribable

0

Download a template to which you will update all the Angular packages, as follows:

but I get an error in the node_modules path \ @angular \ flex-layout \ core \ typings \ observable-media.

And the code on the line where the error is is like this.

import { Observable, Subscribable, Subscription } from 'rxjs';
import { BreakPointRegistry } from '../breakpoints/break-point-registry';
import { MediaChange } from '../media-change';
import { MatchMedia } from '../match-media/match-media';
/**
* Base class for MediaService and pseudo-token for
*/
export declare abstract class ObservableMedia implements 
Subscribable<MediaChange> {
    abstract isActive(query: string): boolean;
    abstract asObservable(): Observable<MediaChange>;
    abstract subscribe(next?: (value: MediaChange) => void, error?: (error: 
 any) => void, complete?: () => void): Subscription;
}

I do not know what to do to solve that error?

    
asked by lARAPRO 19.09.2018 в 18:26
source

0 answers