We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6c587c3 + 07d5a16 commit 41cc95dCopy full SHA for 41cc95d
index.d.ts
@@ -32,6 +32,6 @@ declare namespace parse {
32
* @param {string} format - The format to use for conversion (default is 'ms').
33
* @returns {number} - The parsed duration in milliseconds.
34
*/
35
-declare function parse(str?: string, format?: string): number;
+declare function parse(str?: string, format?: string): number | null;
36
37
export default parse;
0 commit comments