Skip to content

Commit

Permalink
docs(changeset): fix: add types for createMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
nksaraf committed Aug 30, 2023
1 parent 316042f commit 7803042
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-peas-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vinxi": patch
---

fix: add types for createMiddleware
11 changes: 11 additions & 0 deletions packages/vinxi/runtime/server.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
import { EventHandler, H3Event } from "h3";
import { NitroAppPlugin } from "nitropack";

export * from "h3";

export function createMiddleware(
fn: ({
forward,
}: {
forward: (event: H3Event) => Promise<any>;
}) => EventHandler,
): NitroAppPlugin;

0 comments on commit 7803042

Please sign in to comment.