Skip to content

Commit

Permalink
fix: expose close, onClose typings
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoGranziera committed May 28, 2024
1 parent 1e456b1 commit 6bd25ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ declare namespace avvio {
use?: string;
after?: string;
ready?: string;
close?: string;
onClose?: string;
};
autostart?: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion test/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6bd25ab

Please sign in to comment.