2.1.3 • Published 2 years ago
@types/koa-favicon v2.1.3
Installation
npm install --save @types/koa-favicon
Summary
This package contains type definitions for koa-favicon (https://github.com/koajs/favicon).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-favicon.
index.d.ts
// Type definitions for koa-favicon v2.x
// Project: https://github.com/koajs/favicon
// Definitions by: Jerry Chin <https://github.com/hellopao>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/* =================== USAGE ===================
import favicon = require("koa-favicon");
var Koa = require('koa');
var app = new Koa();
app.use(favicon(__dirname + '/public/favicon.ico'));
=============================================== */
import * as Koa from "koa";
/**
* Returns a middleware serving the favicon found on the given path.
*/
declare function favicon(path: string, options?: {
/**
* cache-control max-age directive in ms, defaulting to 1 day.
*/
maxage?: number | undefined;
}): Koa.Middleware;
declare namespace favicon {}
export = favicon;
Additional Details
- Last updated: Fri, 09 Jul 2021 02:32:32 GMT
- Dependencies: @types/koa
- Global values: none
Credits
These definitions were written by Jerry Chin.
2.1.2
2 years ago
2.1.1
2 years ago
2.1.3
2 years ago
2.0.22
2 years ago
2.1.0
2 years ago
2.0.20
4 years ago
2.0.21
4 years ago
2.0.19
8 years ago
2.0.18
8 years ago
2.0.17
9 years ago
2.0.16
9 years ago
2.0.15
9 years ago
2.0.14-alpha
9 years ago
2.0.13-alpha
9 years ago
2.0.12-alpha
9 years ago
2.0.11-alpha
9 years ago
2.0.10-alpha
9 years ago
2.0.9-alpha
9 years ago
2.0.8-alpha
9 years ago
2.0.3-alpha
9 years ago
2.0.2-alpha
9 years ago