Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/type-is

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/type-is - npm Package Compare versions

Comparing version 1.6.3 to 1.6.4

2

type-is/index.d.ts

@@ -8,3 +8,3 @@ // Type definitions for type-is 1.6

/// <reference types="node" />
import { IncomingMessage } from 'http';
import { IncomingMessage } from "http";

@@ -11,0 +11,0 @@ export = typeIs;

{
"name": "@types/type-is",
"version": "1.6.3",
"version": "1.6.4",
"description": "TypeScript definitions for type-is",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/type-is",
"license": "MIT",

@@ -14,3 +15,3 @@ "contributors": [

"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {

@@ -25,4 +26,4 @@ "type": "git",

},
"typesPublisherContentHash": "560845c36acff23e2275aac28448aa5020f4f1073b9d251f46edc1ee43a4c576",
"typeScriptVersion": "2.3"
"typesPublisherContentHash": "68bbb54867d82f01ae6593e4f819af5af275a5905524bbe1086fc46f3d1ccc32",
"typeScriptVersion": "4.3"
}

@@ -8,10 +8,35 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/type-is
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/type-is.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/type-is/index.d.ts)
````ts
// Type definitions for type-is 1.6
// Project: https://github.com/jshttp/type-is#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
Additional Details
* Last updated: Mon, 19 Aug 2019 00:51:19 GMT
* Dependencies: @types/node
/// <reference types="node" />
import { IncomingMessage } from "http";
export = typeIs;
declare function typeIs(request: IncomingMessage, types: string[]): string | false | null;
declare function typeIs(request: IncomingMessage, ...types: string[]): string | false | null;
declare namespace typeIs {
function normalize(type: string): string | false;
function hasBody(request: IncomingMessage): boolean;
function is(mediaType: string, types: string[]): string | false;
function is(mediaType: string, ...types: string[]): string | false;
function mimeMatch(expected: false | string, actual: string): boolean;
}
````
### Additional Details
* Last updated: Tue, 12 Sep 2023 12:34:57 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
* Global values: none
# Credits
These definitions were written by BendingBender <https://github.com/BendingBender>.
These definitions were written by [BendingBender](https://github.com/BendingBender).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc