# getMimeType

**Kind:** Function

**Source:** [`src/utils/mime.ts`](https://github.com/honojs/hono/blob/main/src/utils/mime.ts#L6)

**Part of:** [Utils](subsystem-src-utils)

## Signature

```ts
function getMimeType(filename: string, mimes: Record<string, string>): string | undefined
```

## Parameters

| Name | Type |
|---|---|
| `filename` | `string` |
| `mimes` | `Record<string, string>` |

**Returns:** `string | undefined`

## Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (1)

- `ServeStaticOptions` — `src/middleware/serve-static/index.ts`:13
