Skip to content

Commit 0019e2d

Browse files
committed
📝 Update example codes
1 parent 3444125 commit 0019e2d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ import * as fn from "https://deno.land/x/denops_std@$MODULE_VERSION/function/mod
2222
import * as vars from "https://deno.land/x/denops_std@$MODULE_VERSION/variable/mod.ts";
2323
import * as helper from "https://deno.land/x/denops_std@$MODULE_VERSION/helper/mod.ts";
2424

25-
import { assert, is } from "https://deno.land/x/unknownutil@v3.11.0/mod.ts";
25+
import { assert, is } from "https://deno.land/x/unknownutil@v3.14.1/mod.ts";
2626

27-
export async function main(denops: Denops): Promise<void> {
27+
export function main(denops: Denops): void {
2828
denops.dispatcher = {
29-
async init(): Promise<void> {
29+
async init() {
3030
// This is just an example. Developers usually should define commands directly in Vim script.
3131
await batch.batch(denops, async (denops) => {
3232
await denops.cmd(
@@ -37,7 +37,7 @@ export async function main(denops: Denops): Promise<void> {
3737
);
3838
});
3939
},
40-
async say(where: unknown): Promise<void> {
40+
async say(where) {
4141
assert(where, is.String);
4242
const [name, progname] = await batch.collect(denops, (denops) => [
4343
fn.input(denops, "Your name: "),

mod.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
* import * as vars from "https://deno.land/x/denops_std@$MODULE_VERSION/variable/mod.ts";
1414
* import * as helper from "https://deno.land/x/denops_std@$MODULE_VERSION/helper/mod.ts";
1515
*
16-
* import { assert, is } from "https://deno.land/x/unknownutil@v3.11.0/mod.ts";
16+
* import { assert, is } from "https://deno.land/x/unknownutil@v3.14.1/mod.ts";
1717
*
18-
* export async function main(denops: Denops): Promise<void> {
18+
* export function main(denops: Denops): void {
1919
* denops.dispatcher = {
20-
* async init(): Promise<void> {
20+
* async init() {
2121
* // This is just an example. Developers usually should define commands directly in Vim script.
2222
* await batch.batch(denops, async (denops) => {
2323
* await denops.cmd(
@@ -28,7 +28,7 @@
2828
* );
2929
* });
3030
* },
31-
* async say(where: unknown): Promise<void> {
31+
* async say(where) {
3232
* assert(where, is.String);
3333
* const [name, progname] = await batch.collect(denops, (denops) => [
3434
* fn.input(denops, "Your name: "),

0 commit comments

Comments
 (0)