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

feat: added type declarations #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rielicat
Copy link

@rielicat rielicat commented Jun 1, 2022

Issue:
Projects that use typescript won't be able to have any strong type validations for multer-s3

Solution:

  • Added type declarations to the multer-s3 for projects that use typescript.

@Takaitra
Copy link
Contributor

multer-s3 v2 types are available via "@types/multer-s3": "^2.7.12"

multer-s3 v3 types are available via "@types/multer-s3": "^3.0.0"

It would be nice to define the types directly in this project but adding both AWS SDK dependencies at the same time negates the benefit of the modular v3 SDK. Could the V2 types be added to 2.x.x and V3 types be added to 3.x.x branches?

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

Successfully merging this pull request may close these issues.

2 participants