-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS2345 or TS2322 with generics when in multiple modules #8806
Comments
looks like the same issue in #6496. |
I think something not. No multiple declarations, no d.ts files at all |
Even rxjs module is resolved to the same in both files |
I do not see how you would get this error if |
When I upgraded to 1.9.0-dev which support this option, and compile manually through tsc error is gone |
Error when I using ts-loader in webpack with same options. |
looks like an issue for https://github.com/TypeStrong/ts-loader then. |
TypeScript Version:
1.8.10
Code
node_modules/module1/test.example.ts
app/test.ts
Expected behavior:
NO TS errors
Actual behavior:
test.ts
(13,58): error TS2345: Argument of type '() => Observable<Object[]>' is not assignable to parameter of type '() => Observable<Object[]>'.
Type 'Observable<Object[]>' is not assignable to type 'Observable<Object[]>'.
Property 'source' is protected but type 'Observable' is not a class derived from 'Observable'.
(17,10): error TS2322: Type 'Observable<Object[]>' is not assignable to type 'Observable<Object[]>'.
Property 'source' is protected but type 'Observable' is not a class derived from 'Observable'.
(21,10): error TS2322: Type 'Observable<Object[]>' is not assignable to type 'Observable<Object[]>'.
The text was updated successfully, but these errors were encountered: