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

@better-typescript-lib/es2018

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@better-typescript-lib/es2018 - npm Package Compare versions

Comparing version 2.8.0 to 2.9.0

8

asyncgenerator.d.ts
/// <reference no-default-lib="true"/>
interface AsyncGenerator<T = unknown, TReturn = unknown, TNext = unknown>
extends AsyncIterator<T, TReturn, TNext> {
extends AsyncIteratorObject<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return(

@@ -13,5 +13,5 @@ value: TReturn | PromiseLike<TReturn>,

// /// <reference lib="es2018.asynciterable" />
// interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
// interface AsyncGenerator<T = unknown, TReturn = any, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
// // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
// next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
// next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
// return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;

@@ -18,0 +18,0 @@ // throw(e: any): Promise<IteratorResult<T, TReturn>>;

@@ -14,3 +14,3 @@ /// <reference no-default-lib="true"/>

// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return?(

@@ -21,5 +21,5 @@ value?: TReturn | PromiseLike<TReturn>,

}
// interface AsyncIterator<T, TReturn = any, TNext = undefined> {
// interface AsyncIterator<T, TReturn = any, TNext = any> {
// // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
// next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
// next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
// return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;

@@ -29,8 +29,29 @@ // throw?(e?: any): Promise<IteratorResult<T, TReturn>>;

interface AsyncIterable<T> {
[Symbol.asyncIterator](): AsyncIterator<T>;
interface AsyncIterable<T, TReturn = unknown, TNext = undefined> {
[Symbol.asyncIterator](): AsyncIterator<T, TReturn, TNext>;
}
// interface AsyncIterable<T, TReturn = any, TNext = any> {
// [Symbol.asyncIterator](): AsyncIterator<T, TReturn, TNext>;
// }
interface AsyncIterableIterator<T> extends AsyncIterator<T> {
[Symbol.asyncIterator](): AsyncIterableIterator<T>;
/**
* Describes a user-defined {@link AsyncIterator} that is also async iterable.
*/
interface AsyncIterableIterator<T, TReturn = unknown, TNext = undefined>
extends AsyncIterator<T, TReturn, TNext> {
[Symbol.asyncIterator](): AsyncIterableIterator<T, TReturn, TNext>;
}
// /**
// * Describes a user-defined {@link AsyncIterator} that is also async iterable.
// */
// interface AsyncIterableIterator<T, TReturn = any, TNext = any> extends AsyncIterator<T, TReturn, TNext> {
// [Symbol.asyncIterator](): AsyncIterableIterator<T, TReturn, TNext>;
// }
/**
* Describes an {@link AsyncIterator} produced by the runtime that inherits from the intrinsic `AsyncIterator.prototype`.
*/
interface AsyncIteratorObject<T, TReturn = unknown, TNext = unknown>
extends AsyncIterator<T, TReturn, TNext> {
[Symbol.asyncIterator](): AsyncIteratorObject<T, TReturn, TNext>;
}
{
"name": "@better-typescript-lib/es2018",
"version": "2.8.0",
"version": "2.9.0",
"description": "Better TypeScript standard library",

@@ -5,0 +5,0 @@ "types": "./index.d.ts",

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