mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Allow Buffer argument in serve-favicon (#40544)
This commit is contained in:
parent
c842f6ed49
commit
c26bf74ded
4
types/serve-favicon/index.d.ts
vendored
4
types/serve-favicon/index.d.ts
vendored
@ -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.
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user