Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KishiTheMechanic committed Oct 26, 2024
1 parent 3f4bfcd commit 78c2ae2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export interface FreshContext<State> {
* @param ctx - The FreshContext with the current request and state.
* @returns A promise resolving to a `Response` or void.
*/
export type MiddlewareFn<State = TranslationState> = (
export type MiddlewareFn<State> = (
ctx: FreshContext<State>,
) => Promise<Response | void>
) => Promise<Response>

/**
* Represents the state of translations, the base path, and locale within the app.
Expand Down

0 comments on commit 78c2ae2

Please sign in to comment.