Skip to content

Commit 41cc95d

Browse files
authored
Merge pull request #60 from trim21/patch-1
fix return type
2 parents 6c587c3 + 07d5a16 commit 41cc95d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ declare namespace parse {
3232
* @param {string} format - The format to use for conversion (default is 'ms').
3333
* @returns {number} - The parsed duration in milliseconds.
3434
*/
35-
declare function parse(str?: string, format?: string): number;
35+
declare function parse(str?: string, format?: string): number | null;
3636

3737
export default parse;

0 commit comments

Comments
 (0)