Conversation
from DefinitelyTyped/DefinitelyTyped here for the convenience of maintaining and usage
1 similar comment
| "node": ">= 0.12" | ||
| }, | ||
| "dependencies": { | ||
| "@types/node": "^12.0.8", |
There was a problem hiding this comment.
@mapleeit So it's necessary "evil" to have this as prod dependency?
There was a problem hiding this comment.
Yes, I think it is...
Otherwise people need to install this by themselves when using types.
There was a problem hiding this comment.
When they're using types, they should have it already from TS, right?
There was a problem hiding this comment.
I'll test this later.
|
Let's get other chance to review ;) |
Sure, my bad. Hi, @tabeth , do you have time to take a look at this. I'm not sure that is this |
|
Thanks a lot, your help really appreciated. 🙏 |
|
If we're going to maintain types outside of DefinitelyTyped, then yes, we do have to include |
|
To be honest, I'm a little confused about where is the best place to put typings files. DefinitelyTyped is one option. But I think it may be not the best option for the convenience of usage and maintaining? (I already made a PR to DefinitelyTyped 5 days ago, still no response) And people must install I saw axios put typing file in their own repo. So I think it is an option? I'll make a PR to remove the types from DefinitelyTyped if we decide to store it at here. I could also revert this commit if we decide to not, considering we still not have a new npm version. |
|
@mapleeit @tabeth I don't any types in prod dependencies in axios: |
|
@alexindigo Yes, because the typing file of https://github.com/form-data/form-data/blob/master/index.d.ts#L6 |
|
This is what they have in DefinitelyTyped: And this is next.js server, that uses TS and relying on node modules, like Also I'm seeing Let's try to put it into devDep and see how it works. |
|
Yeah, it would be better to put them in |
|
Agreed with |
|
@tabeth @alexindigo I made a PR to move Then we may can release a version and I remove the @types/form-data from DefinitelyTyped. |
- TS typings were moved from @types/form-data to form-data in 2.5.0 - form-data/form-data#428 - @types/form-data is deprecated as of 2.5.0 - DefinitelyTyped/DefinitelyTyped#36819
- TS typings were moved from @types/form-data to form-data in 2.5.0 - form-data/form-data#428 - @types/form-data is deprecated as of 2.5.0 - DefinitelyTyped/DefinitelyTyped#36819

Migrate TS typings from DefinitelyTyped/DefinitelyTyped here for the convenience of maintaining and usage.
This should fix #427