Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole White committed May 3, 2024
1 parent c2ecc07 commit c783a34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/handlers/testing/align/util/hono-app.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { zValidator } from '@hono/zod-validator';
import { Hono, type Context } from 'hono';
import { SafeParseReturnType, z } from 'zod';
import { type ZodError, z } from 'zod';
import { Language } from './models';
import { SessionManager } from './session-manager';

const handleValidationResult = (
result: SafeParseReturnType<unknown, unknown>,
result: { success: boolean; error?: ZodError<unknown> },
c: Context,
) => {
if (!result.success) {
Expand Down
4 changes: 2 additions & 2 deletions src/handlers/testing/exec/util/hono-app.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { zValidator } from '@hono/zod-validator';
import { Hono, type Context } from 'hono';
import { SafeParseReturnType, z } from 'zod';
import { type ZodError, z } from 'zod';
import { EventName, emitter } from './emitter';
import { RunManager } from './run-manager';

Expand All @@ -23,7 +23,7 @@ export function createHonoApp(runManager: RunManager): Hono {
});

const handleValidationResult = (
result: SafeParseReturnType<unknown, unknown>,
result: { success: boolean; error?: ZodError<unknown> },
c: Context,
) => {
if (!result.success) {
Expand Down

0 comments on commit c783a34

Please sign in to comment.