@@ -93,10 +93,10 @@ class BatchHelper implements Denops {
9393 * Call multiple denops functions sequentially without RPC overhead
9494 *
9595 * ```typescript
96- * import type { Denops } from "https://deno.land/x/denops_std@$MODULE_VERSION/mod.ts";
96+ * import type { Entrypoint } from "https://deno.land/x/denops_std@$MODULE_VERSION/mod.ts";
9797 * import { batch } from "https://deno.land/x/denops_std@$MODULE_VERSION/batch/mod.ts";
9898 *
99- * export async function main(denops: Denops): Promise<void > {
99+ * export const main: Entrypoint = async (denops) = > {
100100 * await batch(denops, async (denops) => {
101101 * await denops.cmd("setlocal modifiable");
102102 * await denops.cmd("setlocal noswap");
@@ -109,7 +109,7 @@ class BatchHelper implements Denops {
109109 * `batch()` like:
110110 *
111111 * ```typescript
112- * import type { Denops } from "https://deno.land/x/denops_std@$MODULE_VERSION/mod.ts";
112+ * import type { Denops, Entrypoint } from "https://deno.land/x/denops_std@$MODULE_VERSION/mod.ts";
113113 * import { batch } from "https://deno.land/x/denops_std@$MODULE_VERSION/batch/mod.ts";
114114 *
115115 * async function replace(denops: Denops, content: string): Promise<void> {
@@ -122,7 +122,7 @@ class BatchHelper implements Denops {
122122 * });
123123 * }
124124 *
125- * export async function main(denops: Denops): Promise<void > {
125+ * export const main: Entrypoint = async (denops) = > {
126126 * await batch(denops, async (denops) => {
127127 * await denops.cmd("edit Hello");
128128 * await replace(denops, "Hello Darkness My Old Friend");
@@ -134,10 +134,10 @@ class BatchHelper implements Denops {
134134 * falsy value in `batch()`, indicating that you **cannot** write code like below:
135135 *
136136 * ```typescript
137- * import type { Denops } from "https://deno.land/x/denops_std@$MODULE_VERSION/mod.ts";
137+ * import type { Entrypoint } from "https://deno.land/x/denops_std@$MODULE_VERSION/mod.ts";
138138 * import { batch } from "https://deno.land/x/denops_std@$MODULE_VERSION/batch/mod.ts";
139139 *
140- * export async function main(denops: Denops): Promise<void > {
140+ * export const main: Entrypoint = async (denops) = > {
141141 * await batch(denops, async (denops) => {
142142 * // !!! DON'T DO THIS !!!
143143 * if (await denops.eval("&verbose")) {
@@ -153,11 +153,11 @@ class BatchHelper implements Denops {
153153 * like:
154154 *
155155 * ```typescript
156- * import type { Denops } from "https://deno.land/x/denops_std@$MODULE_VERSION/mod.ts";
156+ * import type { Entrypoint } from "https://deno.land/x/denops_std@$MODULE_VERSION/mod.ts";
157157 * import * as lambda from "https://deno.land/x/denops_std@$MODULE_VERSION/lambda/mod.ts";
158158 * import { batch } from "https://deno.land/x/denops_std@$MODULE_VERSION/batch/mod.ts";
159159 *
160- * export async function main(denops: Denops): Promise<void > {
160+ * export const main: Entrypoint = async (denops) = > {
161161 * await batch(denops, async (denops) => {
162162 * const id = lambda.register(denops, async () => {
163163 * // This code is called outside of 'batch' block
0 commit comments