# @types/fresh

> TypeScript definitions for fresh

Latest version **0.5.3** (published 2025-06-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/fresh
pnpm add @types/fresh
yarn add @types/fresh
bun add @types/fresh
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.5.3 |
| Published | 2025-06-07 |
| First published | 2017-08-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51443 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/fresh
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fresh
- npm.io page: https://npm.io/package/@types/fresh

## Recent versions

- 0.5.3 (latest) — 2025-06-07
- 0.5.2 (ts5.0) — 2023-11-07
- 0.5.0 (ts3.3) — 2017-08-15
- 0.5.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/fresh`

# Summary
This package contains type definitions for fresh (https://github.com/jshttp/fresh#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fresh.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fresh/index.d.ts)
````ts
export = fresh;

declare function fresh(reqHeaders: fresh.Headers, resHeaders: fresh.Headers): boolean;

declare namespace fresh {
    interface Headers {
        [header: string]: string | string[] | number | undefined;
    }
}

````

### Additional Details
 * Last updated: Sat, 07 Jun 2025 02:15:25 GMT
 * Dependencies: none

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender), and [Sebastian Beltran](https://github.com/bjohansebas).

---
_Source: https://npm.io/package/@types/fresh · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
