New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@types/es-get-iterator

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/es-get-iterator

TypeScript definitions for es-get-iterator

Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
2.6K
-34.36%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/es-get-iterator

Summary

This package contains type definitions for es-get-iterator (https://github.com/ljharb/es-get-iterator#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/es-get-iterator.

index.d.ts

// Type definitions for es-get-iterator 1.1
// Project: https://github.com/ljharb/es-get-iterator#readme
// Definitions by: Jason Kwok <https://github.com/JasonHK>
//                 Jordan Harband <https://github.com/ljharb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.6

interface Iterable<T, TReturn = unknown, TNext = undefined> {
    [Symbol.iterator](): Iterator<T, TReturn, TNext>;
}

type InferIterable<T> = T extends Iterable<infer TYield, infer TReturn, infer TNext> ? Iterator<TYield, TReturn, TNext>
    : unknown extends T ? Iterator<unknown> | undefined
    : undefined;

declare function getIterator<T>(iterable: T): InferIterable<T>;

export = getIterator;

Additional Details

  • Last updated: Sat, 23 Sep 2023 17:07:22 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Jason Kwok, and Jordan Harband.

FAQs

Package last updated on 23 Sep 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