Skip to content

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Sep 15, 2024
1 parent 516b070 commit 2d559e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion denops/skkeleton/sources/deno_kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class Dictionary implements BaseDictionary {

private async loadMsgpack() {
const data = await Deno.readFile(this.#path);
const jisyo = msgpackDecode(data) as Jisyo;
const jisyo = (msgpackDecode(data) as unknown) as Jisyo;
const validator = new jsonschema.Validator();
const result = validator.validate(jisyo, jisyoschema);
if (!result.valid) {
Expand Down
2 changes: 1 addition & 1 deletion denops/skkeleton/sources/skk_dictionary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class Dictionary implements BaseDictionary {
}

private loadMsgpack(data: Uint8Array) {
const jisyo = msgpackDecode(data) as Jisyo;
const jisyo = (msgpackDecode(data) as unknown) as Jisyo;
const validator = new jsonschema.Validator();
const result = validator.validate(jisyo, jisyoschema);
if (!result.valid) {
Expand Down

0 comments on commit 2d559e8

Please sign in to comment.