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);