Socket
Book a DemoInstallSign in
Socket

@types/cloneable-readable

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/cloneable-readable

TypeScript definitions for cloneable-readable

Source
npmnpm
Version
2.0.2
Version published
Weekly downloads
38K
23.11%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/cloneable-readable

Summary

This package contains type definitions for cloneable-readable (https://github.com/mcollina/cloneable-readable#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cloneable-readable.

index.d.ts

/// <reference types="node"/>

import { Readable } from "stream";

declare namespace cloneable {
    type Cloneable<T extends Readable> = T & { clone(): Cloneable<T> };
}

interface CloneableFn {
    <T extends Readable>(x: T): cloneable.Cloneable<T>;
    isCloneable(x: Readable): x is cloneable.Cloneable<Readable>;
}

declare const cloneable: CloneableFn;

export = cloneable;

Additional Details

  • Last updated: Tue, 17 Oct 2023 22:10:14 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Nikita Volodin, and Oleg Vaskevich.

FAQs

Package last updated on 17 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts