Skip to content

Commit 2466093

Browse files
authored
Merge pull request #3 from vim-denops/interrupt
👍 Add `DenopsOptions` interface
2 parents 76a1ee5 + 0fb92ac commit 2466093

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

denops.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,13 @@ export interface Denops {
138138
*/
139139
dispatch(name: string, fn: string, ...args: unknown[]): Promise<unknown>;
140140
}
141+
142+
/**
143+
* Denops option object that is passed as a second argument of `main` function.
144+
*/
145+
export interface DenopsOptions {
146+
/**
147+
* Return a promise that resolves when the `denops#interrupt()` function is called.
148+
*/
149+
interrupted(): Promise<void>;
150+
}

mod.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@
1212
*/
1313

1414
export { BatchError } from "./denops.ts";
15-
export type { Context, Denops, Dispatcher, Meta } from "./denops.ts";
15+
export type {
16+
Context,
17+
Denops,
18+
DenopsOptions,
19+
Dispatcher,
20+
Meta,
21+
} from "./denops.ts";

0 commit comments

Comments
 (0)