Skip to content

Commit ac5370e

Browse files
authored
Merge pull request #1 from vim-denops/fix-dono-doc
💪 Use `interface` instead for better docs
2 parents 5ecc25a + bbc015e commit ac5370e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

denops.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type Context = Record<string, unknown>;
1313
/**
1414
* Environment meta information.
1515
*/
16-
export type Meta = {
16+
export interface Meta {
1717
// Current denops mode.
1818
// In "debug" or "test" mode, some features become enabled,
1919
// which might impact performance.
@@ -24,7 +24,7 @@ export type Meta = {
2424
readonly version: string;
2525
// Host platform name.
2626
readonly platform: "windows" | "mac" | "linux";
27-
};
27+
}
2828

2929
/**
3030
* Batch error raised when one of the functions fails during batch process.
@@ -48,7 +48,7 @@ export class BatchError extends Error {
4848
/**
4949
* Denops is a facade instance visible from each denops plugin.
5050
*/
51-
export type Denops = {
51+
export interface Denops {
5252
/**
5353
* Denops instance name used to communicate with Vim.
5454
*/
@@ -127,4 +127,4 @@ export type Denops = {
127127
* @param args: Arguments of the function.
128128
*/
129129
dispatch(name: string, fn: string, ...args: unknown[]): Promise<unknown>;
130-
};
130+
}

0 commit comments

Comments
 (0)