@types/type-is
- Version 1.6.7
- Published
- 3.9 kB
- 1 dependency
- MIT license
Install
npm i @types/type-is
yarn add @types/type-is
pnpm add @types/type-is
Overview
TypeScript definitions for type-is
Index
Functions
function hasBody
hasBody: (request: IncomingMessage) => boolean;
function is
is: { (mediaType: string, types: string[]): string | false; (mediaType: string, ...types: string[]): string | false;};
function match
match: (expected: false | string, actual: string) => boolean;
function normalize
normalize: (type: string) => string | false;
function typeIs
typeIs: typeof typeIs;
Package Files (1)
Dependencies (1)
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/type-is
.
- Markdown[](https://www.jsdocs.io/package/@types/type-is)
- HTML<a href="https://www.jsdocs.io/package/@types/type-is"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2942 ms. - Missing or incorrect documentation? Open an issue for this package.