@types/type-is

  • Version 1.6.6
  • Published
  • 3.88 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 mimeMatch

      mimeMatch: (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 onejsDocs.io badgeto 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
              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](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>