Skip to content

Documentation


Documentation / @blazetrails/actionpack / Mime

Variable: Mime ​

const Mime: { fetch: MimeType; get: MimeType | undefined; symbols: string[]; }

Defined in: packages/actionpack/lib/action-dispatch/http/mime-type.ts:475

Type Declaration ​

fetch() ​

fetch(type, fallback?): MimeType

Parameters ​

ParameterType
typestring | MimeType
fallback?(key) => MimeType

Returns ​

MimeType

get() ​

get(type): MimeType | undefined

Parameters ​

ParameterType
typestring | MimeType | null

Returns ​

MimeType | undefined

symbols() ​

symbols(): string[]

Returns ​

string[]