2.5.7 • Published 6 months ago
@types/serve-favicon v2.5.7
Installation
npm install --save @types/serve-favicon
Summary
This package contains type definitions for serve-favicon (https://github.com/expressjs/serve-favicon).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serve-favicon.
index.d.ts
// Type definitions for serve-favicon 2.5
// Project: https://github.com/expressjs/serve-favicon
// Definitions by: Uros Smolnik <https://github.com/urossmolnik>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/* =================== USAGE ===================
import serveFavicon = require('serve-favicon');
app.use(serveFavicon(__dirname + '/public/favicon.ico'));
=============================================== */
import express = require('express');
/**
* Node.js middleware for serving a favicon.
*/
declare function serveFavicon(
path: string | Buffer,
options?: serveFavicon.Options
): express.RequestHandler;
declare namespace serveFavicon {
interface Options {
/**
* The cache-control max-age directive in ms, defaulting to 1 day.
* This can also be a string accepted by the `ms` module.
*/
maxAge?: number | string | undefined;
}
}
export = serveFavicon;
Additional Details
- Last updated: Tue, 06 Jul 2021 16:34:37 GMT
- Dependencies: @types/express
- Global values: none
Credits
These definitions were written by Uros Smolnik, and Piotr Błażejewicz.
2.5.6
6 months ago
2.5.5
7 months ago
2.5.7
6 months ago
2.5.4
1 year ago
2.5.3
3 years ago
2.5.2
3 years ago
2.5.1
4 years ago
2.5.0
4 years ago
2.2.31
5 years ago
2.2.30
6 years ago
2.2.29
7 years ago
2.2.28
8 years ago
2.2.27
8 years ago
2.2.26-alpha
8 years ago
2.2.25-alpha
8 years ago
2.2.24-alpha
8 years ago
2.2.23-alpha
8 years ago
2.2.22-alpha
8 years ago
2.2.21-alpha
8 years ago
2.2.20-alpha
8 years ago
2.2.15-alpha
8 years ago
2.2.14-alpha
8 years ago