issues Search Results · repo:jkroso/parse-duration language:JavaScript
Filter by
35 results
(52 ms)35 results
injkroso/parse-duration (press backspace or delete to remove)The annotated return type is number:
https://github.com/jkroso/parse-duration/blob/92bb91f111a57604c2b8c72373f605c1cdf1f895/index.js#L12
However, the return type is actually number | null and it appears ...
eboggs302
- 1
- Opened 2 days ago
- #64
Hello,
We were using parse-duration 1.1.0 but due to CVE-2025-25283 we upgraded to 2.1.3 Before upgrade import parse from
parse-duration ; was working for us. But after upgrade to 2.1.3, it gives error: ...
ketulsha
- 3
- Opened on Feb 24
- #63
In typescript, I m unable to reassign parse.unit to switch locales as documented, since it s declared as a const in the
typings: https://github.com/jkroso/parse-duration/blob/2c0c072a45dc190b47a0c9da19ce6e4cb9920c63/index.d.ts#L24-L26 ...
Smidul
- 1
- Opened on Feb 11
- #62
you didn t keep content of index.d.ts at https://github.com/jkroso/parse-duration/pull/58 so it break downstream
typescript users
current index.d.ts doesn t provide any type info:
https://github.com/jkroso/parse-duration/blob/54a0fab7ec624f7ad1668a216e75e217878bf9d3/index.d.ts#L3-L4 ...
trim21
- 2
- Opened on Jan 31
- #59
Originally posted by @dy in https://github.com/jkroso/parse-duration/pull/56#discussion_r1928474531
That would remove workarounds for Function.prototype props and allow easier locale redefinition. Also ...
dy
- 4
- Opened on Jan 24
- #57
When parsing -1h30m it will return -30m in ms . ( I think because it does -1h + 30m = -30m )
here is a little testing runkit : https://runkit.com/thib3113/parse-duration-negative-bug
tested with version ...
thib3113
- 1
- Opened on Jun 1, 2023
- #52
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
trim21
- Opened on May 1, 2023
- #49
Full error:
Could not find a declaration file for module parse-duration . /home/rajas/folder-size-checker/node_modules/.pnpm/parse-duration@1.0.2/node_modules/parse-duration/index.mjs implicitly has ...
ChocolateLoverRaj
- 1
- Opened on Mar 4, 2023
- #45
I use parse-duration package inside react project.
When I execute yarn build I see this error:
parse-duration/index.mjs: symbol.charCodeAt is not a function at Array.map ( anonymous )
I tried with version ...
dplamenov
- 1
- Opened on May 29, 2022
- #41
Unfortunately current type definition is only for the function. There is no way to add more units cause there is no
index signature defined and parse[ anything ] = generates error.
.d.ts file should ...
piotr-musialek-skyrise
- 1
- Opened on Oct 8, 2021
- #37

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.