diff --git a/deno.json b/deno.json index 1b2ce81..25b25a8 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@elsoul/fresh-i18n", - "version": "0.9.5", + "version": "0.9.6", "description": "A simple and flexible internationalization (i18n) plugin for Deno's Fresh framework.", "runtimes": ["deno", "browser"], "exports": "./mod.ts", diff --git a/src/types.ts b/src/types.ts index 5be80ac..4b353ef 100644 --- a/src/types.ts +++ b/src/types.ts @@ -20,9 +20,9 @@ export interface FreshContext { * @param ctx - The FreshContext with the current request and state. * @returns A promise resolving to a `Response` or void. */ -export type MiddlewareFn = ( +export type MiddlewareFn = ( ctx: FreshContext, -) => Promise +) => Promise /** * Represents the state of translations, the base path, and locale within the app.