Skip to content

getMimeType

reference
1 min readUpdated

Kind: Function

Source: src/utils/mime.ts

Part of: Utils

Signature

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

Parameters

NameType
filenamestring
mimesRecord<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)

  • ServeStaticOptionssrc/middleware/serve-static/index.ts:13

Was this page helpful?

Download as PDF
getMimeType — Hono (narrator proof)