fix(server): Improve MiddlewareHandler type for plugins (#1534)
This commit is contained in:
@@ -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: [{
|
||||
|
||||
Reference in New Issue
Block a user