From 2c56cb544d48ef906d7d05f6b4d9eaf74ba95d58 Mon Sep 17 00:00:00 2001 From: Shiv <167079300+Shiv-hcr@users.noreply.github.com> Date: Mon, 4 Aug 2025 14:58:15 +0100 Subject: [PATCH] Fix type for timeout option There is a runtime check which will throw an error if timeout is set to true, along the lines of: error: Job #1 named "exampleJob" had an invalid timeout of true Now its type safe at runtime and build/dev time --- src/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.d.ts b/src/index.d.ts index 72cbc72..16fb9f5 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -71,7 +71,7 @@ declare namespace Bree { type Job = { name: string; path: string | (() => void); - timeout: number | string | boolean; + timeout: number | string | false; interval: number | string; date?: Date; cron?: string;