Skip to content

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Mar 28, 2024
1 parent 3ac771d commit 93711bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions denops/dpp/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export function main(denops: Denops) {
arg2: unknown,
arg3: unknown,
): Promise<unknown | undefined> {
const extName = ensure(arg1, is.String);
const actionName = ensure(arg2, is.String);
const extName = ensure(arg1, is.String) as string;
const actionName = ensure(arg2, is.String) as string;
const actionParams = ensure(arg3, is.Record);

// Set current options from dpp#_options
Expand All @@ -43,9 +43,9 @@ export function main(denops: Denops) {
arg3: unknown,
): Promise<void> {
//const startTime = Date.now();
const basePath = ensure(arg1, is.String);
const configPath = ensure(arg2, is.String);
const name = ensure(arg3, is.String);
const basePath = ensure(arg1, is.String) as string;
const configPath = ensure(arg2, is.String) as string;
const name = ensure(arg3, is.String) as string;

// NOTE: Import module with fragment so that reload works properly.
// https://github.com/vim-denops/denops.vim/issues/227
Expand Down
6 changes: 3 additions & 3 deletions denops/dpp/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export {
assertEquals,
assertInstanceOf,
equal,
} from "https://deno.land/std@0.220.1/assert/mod.ts";
} from "https://deno.land/std@0.221.0/assert/mod.ts";
export {
basename,
dirname,
Expand All @@ -25,10 +25,10 @@ export {
parse,
SEPARATOR as pathsep,
toFileUrl,
} from "https://deno.land/std@0.220.1/path/mod.ts";
} from "https://deno.land/std@0.221.0/path/mod.ts";
export {
deadline,
DeadlineError,
} from "https://deno.land/std@0.220.1/async/mod.ts";
} from "https://deno.land/std@0.221.0/async/mod.ts";
export { TimeoutError } from "https://deno.land/x/[email protected]/response_waiter.ts";
export { Lock } from "https://deno.land/x/[email protected]/mod.ts";

0 comments on commit 93711bb

Please sign in to comment.