extra-utils
Advanced tools
Comparing version 5.0.1 to 5.1.0
@@ -14,1 +14,2 @@ export * from './array/index.js'; | ||
export * from './pipe.js'; | ||
export * from './pipe-async.js'; |
@@ -14,2 +14,3 @@ export * from './array/index.js'; | ||
export * from './pipe.js'; | ||
export * from './pipe-async.js'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "extra-utils", | ||
"version": "5.0.1", | ||
"version": "5.1.0", | ||
"description": "Utilities for JavaScript and Typescript", | ||
@@ -38,14 +38,14 @@ "files": [ | ||
"@blackglory/pass": "^1.1.0", | ||
"@commitlint/cli": "^17.4.2", | ||
"@commitlint/config-conventional": "^17.4.2", | ||
"@types/jest": "^29.2.6", | ||
"@types/jsdom": "^20.0.1", | ||
"@commitlint/cli": "^17.4.4", | ||
"@commitlint/config-conventional": "^17.4.4", | ||
"@types/jest": "^29.4.0", | ||
"@types/jsdom": "^21.1.0", | ||
"@types/lodash-es": "^4.17.6", | ||
"@typescript-eslint/eslint-plugin": "^5.48.2", | ||
"@typescript-eslint/parser": "^5.48.2", | ||
"@typescript-eslint/eslint-plugin": "^5.52.0", | ||
"@typescript-eslint/parser": "^5.52.0", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.32.0", | ||
"eslint": "^8.34.0", | ||
"husky": "^4.3.8", | ||
"jest": "^29.3.1", | ||
"jest-resolve": "^29.3.1", | ||
"jest": "^29.4.3", | ||
"jest-resolve": "^29.4.3", | ||
"npm-run-all": "^4.1.5", | ||
@@ -57,3 +57,3 @@ "rimraf": "^3.0.2", | ||
"tsd": "^0.25.0", | ||
"tslib": "^2.4.1", | ||
"tslib": "^2.5.0", | ||
"typescript": "4.8", | ||
@@ -60,0 +60,0 @@ "typescript-transform-paths": "^3.4.6" |
@@ -282,1 +282,72 @@ # extra-utils | ||
``` | ||
### pipeAsync | ||
```ts | ||
function pipeAsync<A, B, C, D, E, F, G, H>( | ||
value: Awaitable<A> | ||
, ...operators: [ | ||
(value: A) => Awaitable<B> | ||
, (value: B) => Awaitable<C> | ||
, (value: C) => Awaitable<D> | ||
, (value: D) => Awaitable<E> | ||
, (value: E) => Awaitable<F> | ||
, (value: F) => Awaitable<G> | ||
, (value: G) => Awaitable<H> | ||
] | ||
): Promise<H> | ||
function pipeAsync<A, B, C, D, E, F, G>( | ||
value: Awaitable<A> | ||
, ...operators: [ | ||
(value: A) => Awaitable<B> | ||
, (value: B) => Awaitable<C> | ||
, (value: C) => Awaitable<D> | ||
, (value: D) => Awaitable<E> | ||
, (value: E) => Awaitable<F> | ||
, (value: F) => Awaitable<G> | ||
] | ||
): Promise<G> | ||
function pipeAsync<A, B, C, D, E, F>( | ||
value: Awaitable<A> | ||
, ...operators: [ | ||
(value: A) => Awaitable<B> | ||
, (value: B) => Awaitable<C> | ||
, (value: C) => Awaitable<D> | ||
, (value: D) => Awaitable<E> | ||
, (value: E) => Awaitable<F> | ||
] | ||
): Promise<F> | ||
function pipeAsync<A, B, C, D, E>( | ||
value: Awaitable<A> | ||
, ...operators: [ | ||
(value: A) => Awaitable<B> | ||
, (value: B) => Awaitable<C> | ||
, (value: C) => Awaitable<D> | ||
, (value: D) => Awaitable<E> | ||
] | ||
): Promise<E> | ||
function pipeAsync<A, B, C, D>( | ||
value: Awaitable<A> | ||
, ...operators: [ | ||
(value: A) => Awaitable<B> | ||
, (value: B) => Awaitable<C> | ||
, (value: C) => Awaitable<D> | ||
] | ||
): Promise<D> | ||
function pipeAsync<A, B, C>( | ||
value: Awaitable<A> | ||
, ...operators: [ | ||
(value: A) => Awaitable<B> | ||
, (value: B) => Awaitable<C> | ||
] | ||
): Promise<C> | ||
function pipeAsync<A, B>( | ||
value: Awaitable<A> | ||
, ...operators: [ | ||
(value: A) => Awaitable<B> | ||
] | ||
): Promise<B> | ||
function pipeAsync<T, U>( | ||
value: Awaitable<T> | ||
, ...operators: Array<(value: any) => Awaitable<unknown>> | ||
): Promise<U> | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41211
123
471
353