-
Notifications
You must be signed in to change notification settings - Fork 3
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
issue when configuring lib #2
Comments
Can you say a little more about how you get this error? I can't reproduce.
|
What seems to happen for me is that the diagnostic ends up with empty info:
Going by that, it seems the standard library is no longer loaded, see here. This also happens if At that point you'd wonder, why touch I'm not sure a PR for CI would help, as my change was literally just that... so I'm not sure I can provide something that'd reproduce my situation on your end. :( |
@tycho01 I published an npm package; you should be able to add
Have you been able to get this working for types/npm-ramda? It would be great to get you guys as users. I'd also be happy to add you as contributors to this repo if you'd like to hack on it yourself. |
Heck, this is just solving the greatest problem I had for the ramda typings (actually knowing what the hell we're doing instead of being pretty much clueless w.r.t. whether a commit makes things better or worse), so I'm pretty thankful for your efforts here! I'll swap out the copy to your NPM package tomorrow. :) |
Cool, glad to hear it's working for you! I'd really like to get DT using this, or at least something like it. Low-quality type definitions are one of my biggest sources of frustration with TS. DefinitelyTyped/DefinitelyTyped#1572 (comment) |
Just thought of something: so I'm currently logging the output into git to allow diff checking. Line numbers are a bit unfortunate there since it might clog the diffs with noise. I'll try and see if I can add a mode just showing the line content instead. |
Yeah, I hear you. When I tried checking the Lodash type definitions hoping they'd help me for Ramda, I for the most part ended up disappointed with the type inference they offered (-> not that much in terms of generics, largely rudimentary signatures to check parameter inputs). Nitpick: I've gotta say it's definitely picky, to the extent of caring about parameter names. Also saw errors in the vein of |
Looks like I'm behind by one reaction. Thanks for the inline addition! |
const options: ts.CompilerOptions = { lib: ['es2015'] }
-> boom
Essentially all I was trying to do was solving a bunch of
Cannot find name 'Promise'
errors.The text was updated successfully, but these errors were encountered: