-
Notifications
You must be signed in to change notification settings - Fork 2
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
handler return type inferred as 'any' #30
Comments
I don't think this is a regression as I previously suggested. I upgraded this package at the same time I removed I must be hacking my project's A workaround for this problem is to install |
We could add You typically want a small production build when deploying on lambda. Maybe even to keep it under the size where AWS still lets you use the code editor. So the fewer (non-dev) dependencies the better. |
That's legit, especially for folks who aren't using TypeScript at all.
I think that might be stretching the purpose of peerDependencies.
I read about 20 READMEs that day and installed and removed a bunch of packages trying different things out. It's clearly documented -- totally my mistake. |
There are more dependency-related settings in It does put the onus on downstream devs to Reopening for your consideration. |
This might be a regression from one of the two minor releases this week. I'm pretty sure this was working before I upgraded.See update in follow-up comment.Today I noticed my linter complaining about:
...for code like:
I believe this is due at least in part to
node_modules/@curveball/aws-lambda/dist/index.d.ts
exporting an interface directly from@types/aws-lambda
. The file contents are:My IDE shows an error for aws-lambda on line 2: Cannot find module 'aws-lambda' or its corresponding type declarations.
Per the manual, a package that exports another package's types should declare the latter as a dependency in package.json rather than devDependency.
I'm not sure if I'm failing to build the dist correctly or what, but making this change alone does not seem to correct the problem.
The text was updated successfully, but these errors were encountered: