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

@types/split2

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/split2 - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

2

split2/index.d.ts

@@ -22,3 +22,3 @@ // Type definitions for split2 3.2

interface Options extends TransformOptions {
maxLength?: number;
maxLength?: number | undefined;
}

@@ -25,0 +25,0 @@ type Matcher = string | RegExp;

{
"name": "@types/split2",
"version": "3.2.0",
"version": "3.2.1",
"description": "TypeScript definitions for split2",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/split2",
"license": "MIT",

@@ -24,4 +25,4 @@ "contributors": [

},
"typesPublisherContentHash": "b9903f6226b2d1df78a1c9d640e0d97d5fdf48593cc899bd116b91ba43f31388",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "b09a25174c3b0c6b9d006601ae94f9c261c10acd475d36ef0e06c8017bd91c6a",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,36 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/split2.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/split2/index.d.ts)
````ts
// Type definitions for split2 3.2
// Project: https://github.com/mcollina/split2
// Definitions by: TANAKA Koichi <https://github.com/mugeso>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { Transform, TransformOptions } from "stream";
declare function split(matcher: split.Matcher, Mapper: split.Mapper, options?: split.Options): Transform;
declare function split(mapper: split.Mapper, options?: split.Options): Transform;
// tslint:disable-next-line unified-signatures
declare function split(matcher: split.Matcher, options?: split.Options): Transform;
declare function split(options?: split.Options): Transform;
declare namespace split {
interface Mapper {
(line: string): any;
}
interface Options extends TransformOptions {
maxLength?: number | undefined;
}
type Matcher = string | RegExp;
}
export = split;
````
### Additional Details
* Last updated: Tue, 04 May 2021 20:01:25 GMT
* Last updated: Tue, 06 Jul 2021 16:35:11 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +45,0 @@ * Global values: none

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