feat(serve): Support second parameter in deno serve (#25606)

Closes #24099
This commit is contained in:
Nathan Whitaker 2024-09-12 16:32:28 -07:00 committed by GitHub
parent 018329a4d3
commit 7477c2d706
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 36 additions and 8 deletions

View file

@ -5090,9 +5090,7 @@ declare namespace Deno {
*
* @category HTTP Server
*/
fetch: (
request: Request,
) => Response | Promise<Response>;
fetch: ServeHandler;
}
/** Options which can be set when calling {@linkcode Deno.serve}.