jkroso / parse-duration

convert a human readable duration to ms
MIT License
243 stars 36 forks source link

wrong return type definition #49

Closed trim21 closed 1 year ago

trim21 commented 1 year ago
const parseDuration = require("parse-duration")

console.log('not duration string') # ==> undefined

https://runkit.com/trim21/npm-parse-duration-1

but return value in type definition is number