You might have some changes locally for 3rd party library.
For the local implementation, you need to modify the types in order to resolve IDE issue.
When merging declarations, the specified module path must exactly match the path to the actual module.
Example:
declare module 'rxjs/internal/Observable' {
export interface Observable<T> {
safeSubscribe<T>(this: Observable<T>, component: BaseComponent,
next?: (value: T) => void, error?: (error: T) => void, complete?: () => void): Subscription;
}
}
标签:Observable,TypeScript,void,module,Typescript,Augmentation From: https://www.cnblogs.com/Answer1215/p/16823554.html