fix: 'Context' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

This commit is contained in:
P. Reis 2024-11-01 18:14:51 -03:00
parent 47eca9e2f7
commit 03d93ff810

View file

@ -1,4 +1,4 @@
import { Context } from '@hono/hono';
import { type Context } from '@hono/hono';
const emptyArrayController = (c: Context) => c.json([]);
const notImplementedController = (c: Context) => Promise.resolve(c.json({ error: 'Not implemented' }, 404));