UNPKG

mihawk

Version:

A tiny & simple mock server tool, support json,js,cjs,ts(typescript).

20 lines (19 loc) 482 B
import type { KoaContext, KoaNext } from '../com-types'; interface FaviconOptions { /** * 默认为 image/x-icon */ mime?: string; /** * 单位 ms */ maxAge?: number; } /** * koa favicon 中间件生成器: * @param {string} faviconPath favicon 文件的绝对路径 * @param options * @returns */ export default function favicon(faviconPath: string, options?: FaviconOptions): (ctx: KoaContext, next: KoaNext) => Promise<any>; export {};