Skip to content
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

TS2536: Type '"default"' cannot be used to index type 'Ts'. After upgrading to TS 3.1.1 #43

Closed
mpsijm opened this issue Sep 28, 2018 · 3 comments

Comments

@mpsijm
Copy link

mpsijm commented Sep 28, 2018

I just tried upgrading my TypeScript app from TS 3.0.1 to 3.1.1. When compiling it with webpack, having rewiremock as one of our (dev-)dependencies, compilation breaks at this point:

    ERROR in [at-loader] ./node_modules/rewiremock/rewiremock.d.ts:122:66 
        TS2536: Type '"default"' cannot be used to index type 'Ts'.

Interestingly, when I compile with tsc, I do not get this error.

@theKashey
Copy link
Owner

Did not tried TS 3 yet.

theKashey added a commit that referenced this issue Oct 3, 2018
@theKashey
Copy link
Owner

I've simplified dts, and trying to understand why it was so complex.
Should work fine with 3.8.0

@mpsijm
Copy link
Author

mpsijm commented Oct 3, 2018

Yes, works for me! Thanks a lot 🙂

@mpsijm mpsijm closed this as completed Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants