Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jkroso/parse-duration
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.1.1
Choose a base ref
...
head repository: jkroso/parse-duration
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.1.2
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Jan 31, 2025

  1. Update index.d.ts

    trim21 authored Jan 31, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    jbedard Jason Bedard
    Copy the full SHA
    07d5a16 View commit details
  2. Merge pull request #60 from trim21/patch-1

    fix return type
    dy authored Jan 31, 2025
    Copy the full SHA
    41cc95d View commit details
  3. 2.1.2

    dy committed Jan 31, 2025
    Copy the full SHA
    1aeb141 View commit details
Showing with 4 additions and 4 deletions.
  1. +1 −1 index.d.ts
  2. +2 −2 package-lock.json
  3. +1 −1 package.json
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -32,6 +32,6 @@ declare namespace parse {
* @param {string} format - The format to use for conversion (default is 'ms').
* @returns {number} - The parsed duration in milliseconds.
*/
declare function parse(str?: string, format?: string): number;
declare function parse(str?: string, format?: string): number | null;

export default parse;
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "parse-duration",
"version": "2.1.1",
"version": "2.1.2",
"description": "Convert a human readable duration string to a duration format",
"keywords": [
"parse",