Skip to content

Commit

Permalink
fix(type): expose timeout typing (#263) (#264)
Browse files Browse the repository at this point in the history
Co-authored-by: Flavio Lanternini Strippoli <lanterniniflavio@gmail.com>
  • Loading branch information
Eomm and nickfla1 authored Aug 10, 2024
1 parent 2075e4b commit a5285f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ declare namespace avvio {
onClose?: string;
};
autostart?: boolean;
timeout?: number;
}

interface Plugin<O, I> {
Expand Down
3 changes: 2 additions & 1 deletion test/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a5285f6

Please sign in to comment.