Allow Buffer argument in serve-favicon (#40544)

This commit is contained in:
Brandon Chinn 2019-11-22 08:38:05 -08:00 committed by Sheetal Nandi
parent c842f6ed49
commit c26bf74ded

View File

@ -1,4 +1,4 @@
// Type definitions for serve-favicon 2.2.0
// Type definitions for serve-favicon 2.5.0
// Project: https://github.com/expressjs/serve-favicon
// Definitions by: Uros Smolnik <https://github.com/urossmolnik>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@ -19,7 +19,7 @@ import express = require('express');
/**
* Node.js middleware for serving a favicon.
*/
declare function serveFavicon(path: string, options?: {
declare function serveFavicon(path: string | Buffer, options?: {
/**
* The cache-control max-age directive in ms, defaulting to 1 day. This can also be a string accepted by the ms module.
*/