@@ -93,10 +93,10 @@ class BatchHelper implements Denops {
93
93
* Call multiple denops functions sequentially without RPC overhead
94
94
*
95
95
* ```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";
97
97
* import { batch } from "https://deno.land/x/denops_std@$MODULE_VERSION/batch/mod.ts";
98
98
*
99
- * export async function main(denops: Denops): Promise<void > {
99
+ * export const main: Entrypoint = async (denops) = > {
100
100
* await batch(denops, async (denops) => {
101
101
* await denops.cmd("setlocal modifiable");
102
102
* await denops.cmd("setlocal noswap");
@@ -109,7 +109,7 @@ class BatchHelper implements Denops {
109
109
* `batch()` like:
110
110
*
111
111
* ```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";
113
113
* import { batch } from "https://deno.land/x/denops_std@$MODULE_VERSION/batch/mod.ts";
114
114
*
115
115
* async function replace(denops: Denops, content: string): Promise<void> {
@@ -122,7 +122,7 @@ class BatchHelper implements Denops {
122
122
* });
123
123
* }
124
124
*
125
- * export async function main(denops: Denops): Promise<void > {
125
+ * export const main: Entrypoint = async (denops) = > {
126
126
* await batch(denops, async (denops) => {
127
127
* await denops.cmd("edit Hello");
128
128
* await replace(denops, "Hello Darkness My Old Friend");
@@ -134,10 +134,10 @@ class BatchHelper implements Denops {
134
134
* falsy value in `batch()`, indicating that you **cannot** write code like below:
135
135
*
136
136
* ```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";
138
138
* import { batch } from "https://deno.land/x/denops_std@$MODULE_VERSION/batch/mod.ts";
139
139
*
140
- * export async function main(denops: Denops): Promise<void > {
140
+ * export const main: Entrypoint = async (denops) = > {
141
141
* await batch(denops, async (denops) => {
142
142
* // !!! DON'T DO THIS !!!
143
143
* if (await denops.eval("&verbose")) {
@@ -153,11 +153,11 @@ class BatchHelper implements Denops {
153
153
* like:
154
154
*
155
155
* ```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";
157
157
* import * as lambda from "https://deno.land/x/denops_std@$MODULE_VERSION/lambda/mod.ts";
158
158
* import { batch } from "https://deno.land/x/denops_std@$MODULE_VERSION/batch/mod.ts";
159
159
*
160
- * export async function main(denops: Denops): Promise<void > {
160
+ * export const main: Entrypoint = async (denops) = > {
161
161
* await batch(denops, async (denops) => {
162
162
* const id = lambda.register(denops, async () => {
163
163
* // This code is called outside of 'batch' block
0 commit comments