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 2.1.6 to 3.2.0

39

split2/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for split2 2.1.0
// Type definitions for split2 3.2
// Project: https://github.com/mcollina/split2

@@ -7,29 +7,22 @@ // Definitions by: TANAKA Koichi <https://github.com/mugeso>

/// <reference types="node" />
declare module "split2" {
import { Transform, TransformOptions } from 'stream';
type Matcher = string|RegExp;
type Mapper = split.Mapper;
type Options = split.Options;
import { Transform, TransformOptions } from "stream";
function split(): Transform;
function split(matcher: Matcher): Transform;
function split(mapper: Mapper): Transform;
function split(options: Options): Transform;
function split(matcher: Matcher, mapper: Mapper): Transform;
function split(matcher: Matcher, options: Options): Transform;
function split(mapper: Mapper, options: Options): Transform;
function split(matcher: Matcher, mapper: Mapper, options: Options): Transform;
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;
namespace split {
export interface Mapper {
(line: string): any;
}
declare namespace split {
interface Mapper {
(line: string): any;
}
export interface Options extends TransformOptions {
maxLength?: number;
}
interface Options extends TransformOptions {
maxLength?: number;
}
type Matcher = string | RegExp;
}
export = split;
}
export = split;
{
"name": "@types/split2",
"version": "2.1.6",
"version": "3.2.0",
"description": "TypeScript definitions for split2",

@@ -9,9 +9,12 @@ "license": "MIT",

"name": "TANAKA Koichi",
"url": "https://github.com/mugeso"
"url": "https://github.com/mugeso",
"githubUsername": "mugeso"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/split2"
},

@@ -22,4 +25,4 @@ "scripts": {},

},
"typesPublisherContentHash": "45a4e3b23bb14c2d6ebcc3dc9709785502483a06e37e0db83dd6b2e33c29c6a8",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "b9903f6226b2d1df78a1c9d640e0d97d5fdf48593cc899bd116b91ba43f31388",
"typeScriptVersion": "3.5"
}

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

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/split2
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/split2.
Additional Details
* Last updated: Mon, 21 Aug 2017 22:03:22 GMT
* Dependencies: stream, node
### Additional Details
* Last updated: Tue, 04 May 2021 20:01:25 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
* Global values: none
# Credits
These definitions were written by TANAKA Koichi <https://github.com/mugeso>.
These definitions were written by [TANAKA Koichi](https://github.com/mugeso).

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