{"_id":"@types/hapi__mimos","_rev":"3736668","name":"@types/hapi__mimos","description":"TypeScript definitions for @hapi/mimos","dist-tags":{"latest":"4.1.4","ts2.2":"4.1.0","ts2.3":"4.1.0","ts2.4":"4.1.0","ts2.5":"4.1.0","ts2.6":"4.1.0","ts2.7":"4.1.0","ts2.8":"4.1.2","ts2.9":"4.1.2","ts3.0":"4.1.2","ts3.1":"4.1.2","ts3.2":"4.1.3","ts3.3":"4.1.3","ts3.4":"4.1.3","ts3.5":"4.1.3","ts3.6":"4.1.4","ts3.7":"4.1.4","ts3.8":"4.1.4","ts3.9":"4.1.4","ts4.0":"4.1.4","ts4.1":"4.1.4","ts4.2":"4.1.4","ts4.3":"4.1.4","ts4.4":"4.1.4","ts4.5":"4.1.4","ts4.6":"4.1.4","ts4.7":"4.1.4","ts4.8":"4.1.4","ts4.9":"4.1.4","ts5.0":"4.1.4"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2025-02-13T06:16:12.000Z","created":"2019-04-12T00:17:05.618Z","4.1.4":"2021-07-06T21:06:23.473Z","4.1.3":"2020-09-26T00:29:04.853Z","4.1.2":"2020-04-24T23:22:53.479Z","4.1.1":"2020-03-30T22:53:01.269Z","4.1.0":"2019-04-12T00:17:05.618Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/hapi__mimos"},"versions":{"4.1.4":{"name":"@types/hapi__mimos","version":"4.1.4","description":"TypeScript definitions for @hapi/mimos","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__mimos","license":"MIT","contributors":[{"name":"AJP","url":"https://github.com/AJamesPhillips","githubUsername":"AJamesPhillips"},{"name":"Silas Rech","url":"https://github.com/lenovouser","githubUsername":"lenovouser"},{"name":"Linus Unnebäck","url":"https://github.com/LinusU","githubUsername":"LinusU"},{"name":"Piotr Błażejewicz","url":"https://github.com/peterblazejewicz","githubUsername":"peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/hapi__mimos"},"scripts":{},"dependencies":{"@types/mime-db":"*"},"typesPublisherContentHash":"2aa1fb7a3d13443f11c156be8294a9ccf14043c43f94cda7b914c248b5f9b862","typeScriptVersion":"3.6","_id":"@types/hapi__mimos@4.1.4","dist":{"shasum":"4f8a1c58345fc468553708d3cb508724aa081bd9","size":2354,"noattachment":false,"key":"/@types/hapi__mimos/-/@types/hapi__mimos-4.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/hapi__mimos/download/@types/hapi__mimos-4.1.4.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi__mimos_4.1.4_1625605583329_0.842948210186536"},"_hasShrinkwrap":false,"publish_time":1625605583473,"_cnpm_publish_time":1625605583473,"_cnpmcore_publish_time":"2021-12-16T22:24:07.621Z"},"4.1.3":{"name":"@types/hapi__mimos","version":"4.1.3","description":"TypeScript definitions for @hapi/mimos","license":"MIT","contributors":[{"name":"AJP","url":"https://github.com/AJamesPhillips","githubUsername":"AJamesPhillips"},{"name":"Silas Rech","url":"https://github.com/lenovouser","githubUsername":"lenovouser"},{"name":"Linus Unnebäck","url":"https://github.com/LinusU","githubUsername":"LinusU"},{"name":"Piotr Błażejewicz","url":"https://github.com/peterblazejewicz","githubUsername":"peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/hapi__mimos"},"scripts":{},"dependencies":{"@types/mime-db":"*"},"typesPublisherContentHash":"73c359b061a834b0d60b395350b2322feeea1fb10a8c454b70eeff5230af3fa8","typeScriptVersion":"3.2","_id":"@types/hapi__mimos@4.1.3","dist":{"shasum":"e2ad0510af090a87c16f5a7bdffbb9638ef36444","size":2262,"noattachment":false,"key":"/@types/hapi__mimos/-/@types/hapi__mimos-4.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/hapi__mimos/download/@types/hapi__mimos-4.1.3.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi__mimos_4.1.3_1601080144674_0.9975816303810083"},"_hasShrinkwrap":false,"publish_time":1601080144853,"_cnpm_publish_time":1601080144853,"_cnpmcore_publish_time":"2021-12-16T22:24:07.860Z"},"4.1.2":{"name":"@types/hapi__mimos","version":"4.1.2","description":"TypeScript definitions for @hapi/mimos","license":"MIT","contributors":[{"name":"AJP","url":"https://github.com/AJamesPhillips","githubUsername":"AJamesPhillips"},{"name":"Silas Rech","url":"https://github.com/lenovouser","githubUsername":"lenovouser"},{"name":"Linus Unnebäck","url":"https://github.com/LinusU","githubUsername":"LinusU"},{"name":"Piotr Błażejewicz","url":"https://github.com/peterblazejewicz","githubUsername":"peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/hapi__mimos"},"scripts":{},"dependencies":{"@types/mime-db":"*"},"typesPublisherContentHash":"1c0c4b03eb452cd9c97d61f1d1a868a4a19d64ad9f0f0538b799c1e0ee3c54eb","typeScriptVersion":"2.8","_id":"@types/hapi__mimos@4.1.2","dist":{"shasum":"c375e326ca7ec7f65c04d34ae9d253ea2f2a36d7","size":2263,"noattachment":false,"key":"/@types/hapi__mimos/-/@types/hapi__mimos-4.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/hapi__mimos/download/@types/hapi__mimos-4.1.2.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi__mimos_4.1.2_1587770573330_0.7267149315083665"},"_hasShrinkwrap":false,"publish_time":1587770573479,"_cnpm_publish_time":1587770573479,"_cnpmcore_publish_time":"2021-12-16T22:24:08.062Z"},"4.1.1":{"name":"@types/hapi__mimos","version":"4.1.1","description":"TypeScript definitions for @hapi/mimos","license":"MIT","contributors":[{"name":"AJP","url":"https://github.com/AJamesPhillips","githubUsername":"AJamesPhillips"},{"name":"Silas Rech","url":"https://github.com/lenovouser","githubUsername":"lenovouser"},{"name":"Linus Unnebäck","url":"https://github.com/LinusU","githubUsername":"LinusU"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/hapi__mimos"},"scripts":{},"dependencies":{"@types/mime-db":"*"},"typesPublisherContentHash":"5b14d3b87354b7a7f49ba82626380839f3a44c610982f99826936373988ec61b","typeScriptVersion":"2.8","_id":"@types/hapi__mimos@4.1.1","dist":{"shasum":"efafd594b7a212d2b677a1ccaf042a43bf44d811","size":2105,"noattachment":false,"key":"/@types/hapi__mimos/-/@types/hapi__mimos-4.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/hapi__mimos/download/@types/hapi__mimos-4.1.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi__mimos_4.1.1_1585608780965_0.20873776482336104"},"_hasShrinkwrap":false,"publish_time":1585608781269,"_cnpm_publish_time":1585608781269,"_cnpmcore_publish_time":"2021-12-16T22:24:08.295Z"},"4.1.0":{"name":"@types/hapi__mimos","version":"4.1.0","description":"TypeScript definitions for @hapi/mimos","license":"MIT","contributors":[{"name":"AJP","url":"https://github.com/AJamesPhillips","githubUsername":"AJamesPhillips"},{"name":"Silas Rech","url":"https://github.com/lenovouser","githubUsername":"lenovouser"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/hapi__mimos"},"scripts":{},"dependencies":{"@types/mime-db":"*"},"typesPublisherContentHash":"1ce573eec84c07a894503838a85a8f367bc5d536318c3d5ca7c1ae3946c76840","typeScriptVersion":"2.2","_id":"@types/hapi__mimos@4.1.0","dist":{"shasum":"47dbf89ebfc05183c1de2797e9426793db9a0d85","size":2026,"noattachment":false,"key":"/@types/hapi__mimos/-/@types/hapi__mimos-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/hapi__mimos/download/@types/hapi__mimos-4.1.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi__mimos_4.1.0_1555028225509_0.6804445294016541"},"_hasShrinkwrap":false,"publish_time":1555028225618,"_cnpm_publish_time":1555028225618,"_cnpmcore_publish_time":"2021-12-16T22:24:08.478Z"}},"readme":"# Installation\r\n> `npm install --save @types/hapi__mimos`\r\n\r\n# Summary\r\nThis package contains type definitions for @hapi/mimos (https://github.com/hapijs/mimos).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__mimos.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__mimos/index.d.ts)\r\n````ts\r\n// Type definitions for @hapi/mimos 4.1\n// Project: https://github.com/hapijs/mimos\n// Definitions by: AJP <https://github.com/AJamesPhillips>\n//                 Silas Rech <https://github.com/lenovouser>\n//                 Linus Unnebäck <https://github.com/LinusU>\n//                 Piotr Błażejewicz <https://github.com/peterblazejewicz>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\nimport { MimeEntry } from 'mime-db';\n\ndeclare namespace Mimos {\n    /**\n     *\n     * @see {@link https://github.com/hapijs/mimos#new-mimosoptions}\n     */\n    interface MimosOptions {\n        /**\n         * an object hash that is merged into the built in mime information specified here {@link https://github.com/jshttp/mime-db}.\n         * Each key value pair represents a single mime object.\n         * Each override value should follow this schema:\n         *  * the key is the lower-cased correct mime-type. (Ex. \"application/javascript\").\n         *  * the value should an object @see MimosOptionsValue\n         */\n        override: {\n            [type: string]: MimosOptionsValue & {\n                /**\n                 * Method with signature function(mime) when this mime type is found in the database,\n                 * this function will run. This allows you make customizations to mime based on developer criteria.\n                 */\n                predicate?: ((\n                    mime: MimosOptionsValue & {\n                        [key: string]: any;\n                    },\n                ) => MimosOptionsValue & {\n                    [key: string]: any;\n                }) | undefined;\n            };\n        };\n    }\n\n    interface MimosOptionsValue extends MimeEntry {\n        /**\n         * Specify the type value of result objects, defaults to key.\n         */\n        type?: string | undefined;\n    }\n}\n\ndeclare class Mimos {\n    /**\n     * Creates a new Mimos object.\n     */\n    constructor(options?: Mimos.MimosOptions);\n    /**\n     * Returns mime object\n     */\n    path(path: string): Mimos.MimosOptionsValue;\n    /**\n     * Returns mime object\n     */\n    type(type: string): MimeEntry;\n}\n\nexport = Mimos;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 06 Jul 2021 20:33:13 GMT\r\n * Dependencies: [@types/mime-db](https://npmjs.com/package/@types/mime-db)\r\n * Global values: none\r\n\r\n# Credits\r\nThese definitions were written by [AJP](https://github.com/AJamesPhillips), [Silas Rech](https://github.com/lenovouser), [Linus Unnebäck](https://github.com/LinusU), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__mimos","license":"MIT"}