From a5285f68514b97a50e0b20292ef62d5e9b6f8006 Mon Sep 17 00:00:00 2001 From: Manuel Spigolon Date: Sat, 10 Aug 2024 09:43:25 +0200 Subject: [PATCH] fix(type): expose timeout typing (#263) (#264) Co-authored-by: Flavio Lanternini Strippoli --- index.d.ts | 1 + test/types/index.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 { 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);