Skip to content

Commit

Permalink
feat: remove model, db and chatDir from schema omit
Browse files Browse the repository at this point in the history
This commit removes `model`, `db` and `chatDir` from the `StartChatParamsSchema` omit,
and removes `db` from `GitCommitParamsSchema` omit in order to use default values defined in schema.
  • Loading branch information
yukimemi committed Feb 4, 2025
1 parent 4be5c19 commit ed2e97d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions denops/futago/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// =============================================================================
// File : main.ts
// Author : yukimemi
// Last Change : 2025/02/02 23:06:10.
// Last Change : 2025/02/05 00:32:26.
// =============================================================================

import * as fn from "jsr:@denops/std@7.4.0/function";
Expand Down Expand Up @@ -127,7 +127,7 @@ export async function main(denops: Denops): Promise<void> {

denops.dispatcher = {
async startChat(params: unknown): Promise<void> {
const parsed = StartChatParamsSchema.omit({ model: true, db: true, chatDir: true }).safeParse(
const parsed = StartChatParamsSchema.omit({ db: true, chatDir: true }).safeParse(
params,
);
const futago = parsed.success
Expand Down Expand Up @@ -185,7 +185,7 @@ export async function main(denops: Denops): Promise<void> {
},

async gitCommit(params: unknown): Promise<void> {
const parsed = GitCommitParamsSchema.omit({ model: true, db: true }).safeParse(params);
const parsed = GitCommitParamsSchema.omit({ db: true }).safeParse(params);
if (parsed.success) {
await gitCommit(
denops,
Expand Down

0 comments on commit ed2e97d

Please sign in to comment.