fix(server): Improve MiddlewareHandler type for plugins (#1534)

This commit is contained in:
Reed von Redwitz
2023-07-31 11:50:29 +02:00
committed by GitHub
parent 5fa6a67188
commit 1ad29e256b
4 changed files with 16 additions and 11 deletions
+3 -1
View File
@@ -7,7 +7,9 @@ interface Options {
title: string;
}
export default function routePlugin(options: Options): Plugin {
export default function routePlugin(
options: Options,
): Plugin<{ test: string }> {
return {
name: "routePlugin",
middlewares: [{