Skip to content

Commit bcc88ca

Browse files
authored
Merge pull request #347 from vim-denops/use-entrypoint
💪 Use `Entrypoint` style in test code
2 parents 74116b9 + d236844 commit bcc88ca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v6.0.5/mod.ts";
1+
import type { Entrypoint } from "https://deno.land/x/denops_core@v6.1.0/mod.ts";
22

3-
export function main(_denops: Denops): Promise<void> {
3+
export const main: Entrypoint = (_denops) => {
44
throw new Error("This is dummy error");
5-
}
5+
};
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v6.0.5/mod.ts";
1+
import type { Entrypoint } from "https://deno.land/x/denops_core@v6.1.0/mod.ts";
22

3-
export async function main(denops: Denops): Promise<void> {
3+
export const main: Entrypoint = async (denops) => {
44
denops.dispatcher = {
55
test: async (...args) => {
66
await denops.cmd(`echo 'This is test call: ${JSON.stringify(args)}'`);
77
},
88
};
99
await denops.cmd("echo 'Hello, Denops!'");
10-
}
10+
};

0 commit comments

Comments
 (0)