# @types/mimos

> TypeScript definitions for mimos

Latest version **3.0.6** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.6 |
| Published | 2023-11-07 |
| First published | 2017-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/mime-db](https://npm.io/package/@types/mime-db.md) *

## Recent versions

- 3.0.6 (latest) — 2023-11-07
- 3.0.3 (ts3.6) — 2021-07-06
- 3.0.2 (ts2.8) — 2020-03-30
- 3.0.1 (ts2.2) — 2017-07-25
- 3.0.5 — 2023-10-18
- 3.0.4 — 2023-09-27
- 3.0.0 — 2017-05-15

## README

# Installation
> `npm install --save @types/mimos`

# Summary
This package contains type definitions for mimos (https://github.com/hapijs/mimos).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mimos.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mimos/index.d.ts)
````ts
import { MimeEntry } from "mime-db";

/**
 * @see {@link https://github.com/hapijs/mimos#new-mimosoptions}
 */
export interface MimosOptions {
    /**
     * an object hash that is merged into the built in mime information specified here {@link https://github.com/jshttp/mime-db}. Each key value pair represents a single mime object. Each override value should follow this schema:
     *  * the key is the lower-cased correct mime-type. (Ex. "application/javascript").
     *  * the value should an object @see MimosOptionsValue
     */
    override: { [index: string]: MimosOptionsValue };
}

export interface MimosOptionsValue extends MimeEntry {
    /** specify the type value of result objects, defaults to key. See the example below for more clarification. */
    type?: string | undefined;
    /** method with signature function(mime) when this mime type is found in the database, this function will run. This allows you make customizations to mime based on developer criteria. */
    predicate?: ((mime: MimosOptionsValue) => MimosOptionsValue) | undefined;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/mime-db](https://npmjs.com/package/@types/mime-db)

# Credits
These definitions were written by [AJP](https://github.com/AJamesPhillips), and [Linus Unnebäck](https://github.com/LinusU).

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