ngx-extended-async-pipe
Advanced tools
Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "ngx-extended-async-pipe", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Extended version of Angular's async pipe with customizable default, initial and error behavior", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/dscheerens/ngx-extended-async-pipe", |
@@ -35,2 +35,9 @@ import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core'; | ||
* @param source Asynchronous data source from which the values are to be obtained. | ||
* @param initialValue Value that will be returned if the data source has not yet emitted any value yet. | ||
*/ | ||
transform<T>(source: AsyncSource<T>, initialValue: T): T; | ||
/** | ||
* Unwraps the specified asynchronous data source and returns the last emitted value or the specified initial value. | ||
* | ||
* @param source Asynchronous data source from which the values are to be obtained. | ||
* @param initialValue Value that will be returned if the data source has not yet emitted any value yet. When this is set to `nothing` | ||
@@ -53,4 +60,33 @@ * an error will be thrown instead of returning an initial value. | ||
* @param source Asynchronous data source from which the values are to be obtained. | ||
* @param initialValue Value that will be returned if the data source has not yet emitted any value yet. | ||
* @param errorValue Value to return when the data source emits an error event. | ||
*/ | ||
transform<T>(source: AsyncSource<T>, initialValue: T, errorValue: T): T; | ||
/** | ||
* Unwraps the specified asynchronous data source and returns the last emitted value, the specified initial value or the specified error | ||
* value. | ||
* | ||
* @param source Asynchronous data source from which the values are to be obtained. | ||
* @param initialValue Value that will be returned if the data source has not yet emitted any value yet. | ||
* @param errorValue Value to return when the data source emits an error event. When this is set to `nothing` the error will be thrown | ||
* instead of returning an error value. | ||
*/ | ||
transform<T, E>(source: AsyncSource<T>, initialValue: T, errorValue: E): T | Something<E>; | ||
/** | ||
* Unwraps the specified asynchronous data source and returns the last emitted value, the specified initial value or the specified error | ||
* value. | ||
* | ||
* @param source Asynchronous data source from which the values are to be obtained. | ||
* @param initialValue Value that will be returned if the data source has not yet emitted any value yet. When this is set to `nothing` | ||
* an error will be thrown instead of returning an initial value. | ||
* @param errorValue Value to return when the data source emits an error event. | ||
*/ | ||
transform<T, U>(source: AsyncSource<T>, initialValue: U, errorValue: T): T | Something<U>; | ||
/** | ||
* Unwraps the specified asynchronous data source and returns the last emitted value, the specified initial value or the specified error | ||
* value. | ||
* | ||
* @param source Asynchronous data source from which the values are to be obtained. | ||
* @param initialValue Value that will be returned if the data source has not yet emitted any value yet. When this is set to `nothing` | ||
* an error will be thrown instead of returning an initial value. | ||
* @param errorValue Value to return when the data source emits an error event. When this is set to `nothing` the error will be thrown | ||
@@ -57,0 +93,0 @@ * instead of returning an error value. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
148840
1026