diff --git a/index.d.ts b/index.d.ts index 9b04f4f..3965d07 100644 --- a/index.d.ts +++ b/index.d.ts @@ -20,6 +20,8 @@ declare namespace avvio { use?: string; after?: string; ready?: string; + close?: string; + onClose?: string; }; autostart?: boolean; } diff --git a/test/types/index.ts b/test/types/index.ts index 8b80d62..85c5b83 100644 --- a/test/types/index.ts +++ b/test/types/index.ts @@ -386,7 +386,7 @@ import * as avvio from "../../"; const server = { hello: "world" }; const options = { autostart: false, - expose: { after: "after", ready: "ready", use: "use" } + expose: { after: "after", ready: "ready", use: "use", close: "close", onClose : "onClose" } }; // avvio with server and options const app = avvio(server, options);