diff --git a/deno.jsonc b/deno.jsonc index 5371e5e..a52bba9 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -11,11 +11,11 @@ "main": "deno task run main.ts", "start": "deno task run --watch server.ts", // development - "test": "deno test --allow-env --allow-read --allow-net --allow-none", + "test": "deno test --allow-env --allow-read --allow-net --allow-none --unstable", "cov": "deno task test --coverage=cov_profile; deno coverage cov_profile", "lint": "deno lint --ignore=cov_profile", "fmt": "deno fmt --ignore=cov_profile", - "check": "deno check ./**/*.ts", + "check": "deno check --unstable ./**/*.ts", "ci": "deno task check && deno task lint && deno task fmt --check && deno task test", "deps": "deno run --allow-read --allow-write --allow-net --allow-run https://deno.land/x/udd@0.8.2/main.ts --test='deno task test' deno.jsonc ./**.*.ts", // git hooks diff --git a/denops/futago/futago.ts b/denops/futago/futago.ts index 51ceac2..84e44a4 100644 --- a/denops/futago/futago.ts +++ b/denops/futago/futago.ts @@ -1,7 +1,7 @@ // ============================================================================= // File : futago.ts // Author : yukimemi -// Last Change : 2024/01/14 00:53:40. +// Last Change : 2024/01/14 01:48:09. // ============================================================================= import * as datetime from "https://deno.land/std@0.212.0/datetime/mod.ts"; @@ -65,7 +65,7 @@ export class Futago { public async getHistory(): Promise { const lastHistory = await this.#db.get([this.chatTitle]); if (lastHistory.value) { - return lastHistory.value; + return (lastHistory.value) as InputContent[]; } else { return []; }