From 2dd3d6ddfdf23cd4c4580fc279926d1726a2d674 Mon Sep 17 00:00:00 2001 From: rezakargar Date: Wed, 27 Mar 2024 20:19:55 +0330 Subject: [PATCH] Add minute to Duration type --- src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index 39b4dfb5de..78518a7084 100644 --- a/src/util.ts +++ b/src/util.ts @@ -216,7 +216,7 @@ export function errnoMessage(errno: number | undefined): string { ) } -export type Duration = number | `${number}s` | `${number}ms` +export type Duration = number | `${number}m` | `${number}s` | `${number}ms` export function parseDuration(d: Duration) { if (typeof d == 'number') {