From dd1571916ec9af5d34170860cde8a5c4d50cc386 Mon Sep 17 00:00:00 2001 From: Flavio Lanternini Strippoli Date: Fri, 9 Aug 2024 12:25:58 +0200 Subject: [PATCH 1/2] fix: expose timeout typing --- index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.d.ts b/index.d.ts index 3965d07..cd3ba01 100644 --- a/index.d.ts +++ b/index.d.ts @@ -24,6 +24,7 @@ declare namespace avvio { onClose?: string; }; autostart?: boolean; + timeout?: number; } interface Plugin { From 18413b3ea8e266ccb044c55f4ead673f2c1882b8 Mon Sep 17 00:00:00 2001 From: Flavio Lanternini Strippoli Date: Fri, 9 Aug 2024 14:54:07 +0200 Subject: [PATCH 2/2] tests: add timeout typescript test --- test/types/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/types/index.ts b/test/types/index.ts index 85c5b83..43497d0 100644 --- a/test/types/index.ts +++ b/test/types/index.ts @@ -386,7 +386,8 @@ import * as avvio from "../../"; const server = { hello: "world" }; const options = { autostart: false, - expose: { after: "after", ready: "ready", use: "use", close: "close", onClose : "onClose" } + expose: { after: "after", ready: "ready", use: "use", close: "close", onClose : "onClose" }, + timeout: 50000 }; // avvio with server and options const app = avvio(server, options);