Installation
npm install --save @types/hapi__mimos
Summary
This package contains type definitions for @hapi/mimos (https://github.com/hapijs/mimos).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__mimos.
import { MimeEntry } from 'mime-db';
declare namespace Mimos {
interface MimosOptions {
override: {
[type: string]: MimosOptionsValue & {
predicate?: ((
mime: MimosOptionsValue & {
[key: string]: any;
},
) => MimosOptionsValue & {
[key: string]: any;
}) | undefined;
};
};
}
interface MimosOptionsValue extends MimeEntry {
type?: string | undefined;
}
}
declare class Mimos {
constructor(options?: Mimos.MimosOptions);
path(path: string): Mimos.MimosOptionsValue;
type(type: string): MimeEntry;
}
export = Mimos;
Additional Details
- Last updated: Tue, 06 Jul 2021 20:33:13 GMT
- Dependencies: @types/mime-db
- Global values: none
Credits
These definitions were written by AJP, Silas Rech, Linus Unnebäck, and Piotr Błażejewicz.