mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Merge pull request #32847 from astashov/typesafe-koa-static
Explicitly specify `Koa.Middleware` params
This commit is contained in:
Vendored
+1
-1
@@ -19,7 +19,7 @@ import { Middleware } from "koa";
|
||||
|
||||
import { SendOptions } from "koa-send";
|
||||
|
||||
declare function serve(root: string, opts?: serve.Options): Middleware;
|
||||
declare function serve(root: string, opts?: serve.Options): Middleware<{}>;
|
||||
|
||||
declare namespace serve {
|
||||
interface Options extends SendOptions {
|
||||
|
||||
Reference in New Issue
Block a user