vercel / ms

Tiny millisecond conversion utility
https://npmjs.com/ms
MIT License
5.16k stars 265 forks source link

Is the project still being maintained? #209

Closed timi137137 closed 9 months ago

timi137137 commented 9 months ago

I've found that this package is practically unusable for Typescript. Not because the function is unavailable, but because the type definition is missing and invalid. For example:

image

I can contribute to this package if needed, this package is very important for too many scenarios. Looking forward to reply!

Environment: "ms": "^3.0.0-canary.1", "@types/ms": "^0.7.34",

timi137137 commented 9 months ago

Add new example: image Normally, the IDE automatically prompts for type completion import, but this package does not

TooTallNate commented 9 months ago

ms@3.0.0-canary.1 contains its own type definitions. You don't need to use @types/ms.

timi137137 commented 9 months ago

ms@3.0.0-canary.1 contains its own type definitions. You don't need to use @types/ms.

IDE said he couldn't detect it It doesn't matter if I installed the package or not