@types/rx-lite
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -355,28 +355,28 @@ // Type definitions for rx-lite 4.0 | ||
/** | ||
* Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then | ||
* transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. | ||
* @param selector A transform function to apply to each source element; the second parameter of the function represents the index of the source element. | ||
* @param [thisArg] Object to use as this when executing callback. | ||
* @returns An observable sequence whose elements are the result of invoking the transform function on each element of source producing an Observable of Observable sequences | ||
* and that at any point in time produces the elements of the most recent inner observable sequence that has been received. | ||
*/ | ||
* Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then | ||
* transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. | ||
* @param selector A transform function to apply to each source element; the second parameter of the function represents the index of the source element. | ||
* @param [thisArg] Object to use as this when executing callback. | ||
* @returns An observable sequence whose elements are the result of invoking the transform function on each element of source producing an Observable of Observable sequences | ||
* and that at any point in time produces the elements of the most recent inner observable sequence that has been received. | ||
*/ | ||
selectSwitch<TResult>(selector: (value: T, index: number, source: Observable<T>) => Observable<TResult>, thisArg?: any): Observable<TResult>; | ||
/** | ||
* Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then | ||
* transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. | ||
* @param selector A transform function to apply to each source element; the second parameter of the function represents the index of the source element. | ||
* @param [thisArg] Object to use as this when executing callback. | ||
* @returns An observable sequence whose elements are the result of invoking the transform function on each element of source producing an Observable of Observable sequences | ||
* and that at any point in time produces the elements of the most recent inner observable sequence that has been received. | ||
*/ | ||
* Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then | ||
* transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. | ||
* @param selector A transform function to apply to each source element; the second parameter of the function represents the index of the source element. | ||
* @param [thisArg] Object to use as this when executing callback. | ||
* @returns An observable sequence whose elements are the result of invoking the transform function on each element of source producing an Observable of Observable sequences | ||
* and that at any point in time produces the elements of the most recent inner observable sequence that has been received. | ||
*/ | ||
flatMapLatest<TResult>(selector: (value: T, index: number, source: Observable<T>) => Observable<TResult>, thisArg?: any): Observable<TResult>; // alias for selectSwitch | ||
/** | ||
* Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then | ||
* transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. | ||
* @param selector A transform function to apply to each source element; the second parameter of the function represents the index of the source element. | ||
* @param [thisArg] Object to use as this when executing callback. | ||
* @since 2.2.28 | ||
* @returns An observable sequence whose elements are the result of invoking the transform function on each element of source producing an Observable of Observable sequences | ||
* and that at any point in time produces the elements of the most recent inner observable sequence that has been received. | ||
*/ | ||
* Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then | ||
* transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. | ||
* @param selector A transform function to apply to each source element; the second parameter of the function represents the index of the source element. | ||
* @param [thisArg] Object to use as this when executing callback. | ||
* @since 2.2.28 | ||
* @returns An observable sequence whose elements are the result of invoking the transform function on each element of source producing an Observable of Observable sequences | ||
* and that at any point in time produces the elements of the most recent inner observable sequence that has been received. | ||
*/ | ||
switchMap<TResult>(selector: (value: T, index: number, source: Observable<T>) => TResult, thisArg?: any): Observable<TResult>; // alias for selectSwitch | ||
@@ -392,20 +392,20 @@ | ||
/** | ||
* Converts an existing observable sequence to an ES6 Compatible Promise | ||
* @example | ||
* var promise = Rx.Observable.return(42).toPromise(RSVP.Promise); | ||
* @param promiseCtor The constructor of the promise. | ||
* @returns An ES6 compatible promise with the last value from the observable sequence. | ||
*/ | ||
* Converts an existing observable sequence to an ES6 Compatible Promise | ||
* @example | ||
* var promise = Rx.Observable.return(42).toPromise(RSVP.Promise); | ||
* @param promiseCtor The constructor of the promise. | ||
* @returns An ES6 compatible promise with the last value from the observable sequence. | ||
*/ | ||
toPromise<TPromise extends IPromise<T>>(promiseCtor: { new (resolver: (resolvePromise: (value: T) => void, rejectPromise: (reason: any) => void) => void): TPromise; }): TPromise; | ||
/** | ||
* Converts an existing observable sequence to an ES6 Compatible Promise | ||
* @example | ||
* var promise = Rx.Observable.return(42).toPromise(RSVP.Promise); | ||
* | ||
* // With config | ||
* Rx.config.Promise = RSVP.Promise; | ||
* var promise = Rx.Observable.return(42).toPromise(); | ||
* @param [promiseCtor] The constructor of the promise. If not provided, it looks for it in Rx.config.Promise. | ||
* @returns An ES6 compatible promise with the last value from the observable sequence. | ||
*/ | ||
* Converts an existing observable sequence to an ES6 Compatible Promise | ||
* @example | ||
* var promise = Rx.Observable.return(42).toPromise(RSVP.Promise); | ||
* | ||
* // With config | ||
* Rx.config.Promise = RSVP.Promise; | ||
* var promise = Rx.Observable.return(42).toPromise(); | ||
* @param [promiseCtor] The constructor of the promise. If not provided, it looks for it in Rx.config.Promise. | ||
* @returns An ES6 compatible promise with the last value from the observable sequence. | ||
*/ | ||
toPromise(promiseCtor?: { new (resolver: (resolvePromise: (value: T) => void, rejectPromise: (reason: any) => void) => void): IPromise<T>; }): IPromise<T>; | ||
@@ -416,19 +416,19 @@ | ||
/** | ||
* Performs a exclusive waiting for the first to finish before subscribing to another observable. | ||
* Observables that come in between subscriptions will be dropped on the floor. | ||
* Can be applied on `Observable<Observable<R>>` or `Observable<IPromise<R>>`. | ||
* @since 2.2.28 | ||
* @returns A exclusive observable with only the results that happen when subscribed. | ||
*/ | ||
* Performs a exclusive waiting for the first to finish before subscribing to another observable. | ||
* Observables that come in between subscriptions will be dropped on the floor. | ||
* Can be applied on `Observable<Observable<R>>` or `Observable<IPromise<R>>`. | ||
* @since 2.2.28 | ||
* @returns A exclusive observable with only the results that happen when subscribed. | ||
*/ | ||
exclusive<R>(): Observable<R>; | ||
/** | ||
* Performs a exclusive map waiting for the first to finish before subscribing to another observable. | ||
* Observables that come in between subscriptions will be dropped on the floor. | ||
* Can be applied on `Observable<Observable<I>>` or `Observable<IPromise<I>>`. | ||
* @since 2.2.28 | ||
* @param selector Selector to invoke for every item in the current subscription. | ||
* @param [thisArg] An optional context to invoke with the selector parameter. | ||
* @returns {An exclusive observable with only the results that happen when subscribed. | ||
*/ | ||
* Performs a exclusive map waiting for the first to finish before subscribing to another observable. | ||
* Observables that come in between subscriptions will be dropped on the floor. | ||
* Can be applied on `Observable<Observable<I>>` or `Observable<IPromise<I>>`. | ||
* @since 2.2.28 | ||
* @param selector Selector to invoke for every item in the current subscription. | ||
* @param [thisArg] An optional context to invoke with the selector parameter. | ||
* @returns {An exclusive observable with only the results that happen when subscribed. | ||
*/ | ||
exclusiveMap<I, R>(selector: (value: I, index: number, source: Observable<I>) => R, thisArg?: any): Observable<R>; | ||
@@ -453,42 +453,42 @@ | ||
/** | ||
* This method creates a new Observable sequence from an array object. | ||
* @param array An array-like or iterable object to convert to an Observable sequence. | ||
* @param mapFn Map function to call on every element of the array. | ||
* @param [thisArg] The context to use calling the mapFn if provided. | ||
* @param [scheduler] Optional scheduler to use for scheduling. If not provided, defaults to Scheduler.currentThread. | ||
*/ | ||
* This method creates a new Observable sequence from an array object. | ||
* @param array An array-like or iterable object to convert to an Observable sequence. | ||
* @param mapFn Map function to call on every element of the array. | ||
* @param [thisArg] The context to use calling the mapFn if provided. | ||
* @param [scheduler] Optional scheduler to use for scheduling. If not provided, defaults to Scheduler.currentThread. | ||
*/ | ||
from<T, TResult>(array: T[], mapFn: (value: T, index: number) => TResult, thisArg?: any, scheduler?: IScheduler): Observable<TResult>; | ||
/** | ||
* This method creates a new Observable sequence from an array object. | ||
* @param array An array-like or iterable object to convert to an Observable sequence. | ||
* @param [mapFn] Map function to call on every element of the array. | ||
* @param [thisArg] The context to use calling the mapFn if provided. | ||
* @param [scheduler] Optional scheduler to use for scheduling. If not provided, defaults to Scheduler.currentThread. | ||
*/ | ||
* This method creates a new Observable sequence from an array object. | ||
* @param array An array-like or iterable object to convert to an Observable sequence. | ||
* @param [mapFn] Map function to call on every element of the array. | ||
* @param [thisArg] The context to use calling the mapFn if provided. | ||
* @param [scheduler] Optional scheduler to use for scheduling. If not provided, defaults to Scheduler.currentThread. | ||
*/ | ||
from<T>(array: T[], mapFn?: (value: T, index: number) => T, thisArg?: any, scheduler?: IScheduler): Observable<T>; | ||
/** | ||
* This method creates a new Observable sequence from an array-like object. | ||
* @param array An array-like or iterable object to convert to an Observable sequence. | ||
* @param mapFn Map function to call on every element of the array. | ||
* @param [thisArg] The context to use calling the mapFn if provided. | ||
* @param [scheduler] Optional scheduler to use for scheduling. If not provided, defaults to Scheduler.currentThread. | ||
*/ | ||
* This method creates a new Observable sequence from an array-like object. | ||
* @param array An array-like or iterable object to convert to an Observable sequence. | ||
* @param mapFn Map function to call on every element of the array. | ||
* @param [thisArg] The context to use calling the mapFn if provided. | ||
* @param [scheduler] Optional scheduler to use for scheduling. If not provided, defaults to Scheduler.currentThread. | ||
*/ | ||
from<T, TResult>(array: { length: number; [index: number]: T; }, mapFn: (value: T, index: number) => TResult, thisArg?: any, scheduler?: IScheduler): Observable<TResult>; | ||
/** | ||
* This method creates a new Observable sequence from an array-like object. | ||
* @param array An array-like or iterable object to convert to an Observable sequence. | ||
* @param [mapFn] Map function to call on every element of the array. | ||
* @param [thisArg] The context to use calling the mapFn if provided. | ||
* @param [scheduler] Optional scheduler to use for scheduling. If not provided, defaults to Scheduler.currentThread. | ||
*/ | ||
* This method creates a new Observable sequence from an array-like object. | ||
* @param array An array-like or iterable object to convert to an Observable sequence. | ||
* @param [mapFn] Map function to call on every element of the array. | ||
* @param [thisArg] The context to use calling the mapFn if provided. | ||
* @param [scheduler] Optional scheduler to use for scheduling. If not provided, defaults to Scheduler.currentThread. | ||
*/ | ||
from<T>(array: { length: number; [index: number]: T; }, mapFn?: (value: T, index: number) => T, thisArg?: any, scheduler?: IScheduler): Observable<T>; | ||
/** | ||
* This method creates a new Observable sequence from an array-like or iterable object. | ||
* @param array An array-like or iterable object to convert to an Observable sequence. | ||
* @param [mapFn] Map function to call on every element of the array. | ||
* @param [thisArg] The context to use calling the mapFn if provided. | ||
* @param [scheduler] Optional scheduler to use for scheduling. If not provided, defaults to Scheduler.currentThread. | ||
*/ | ||
* This method creates a new Observable sequence from an array-like or iterable object. | ||
* @param array An array-like or iterable object to convert to an Observable sequence. | ||
* @param [mapFn] Map function to call on every element of the array. | ||
* @param [thisArg] The context to use calling the mapFn if provided. | ||
* @param [scheduler] Optional scheduler to use for scheduling. If not provided, defaults to Scheduler.currentThread. | ||
*/ | ||
from<T>(iterable: any, mapFn?: (value: any, index: number) => T, thisArg?: any, scheduler?: IScheduler): Observable<T>; | ||
@@ -503,19 +503,19 @@ | ||
/** | ||
* This method creates a new Observable instance with a variable number of arguments, regardless of number or type of the arguments. | ||
* | ||
* @example | ||
* var res = Rx.Observable.of(1, 2, 3); | ||
* @since 2.2.28 | ||
* @returns The observable sequence whose elements are pulled from the given arguments. | ||
*/ | ||
* This method creates a new Observable instance with a variable number of arguments, regardless of number or type of the arguments. | ||
* | ||
* @example | ||
* var res = Rx.Observable.of(1, 2, 3); | ||
* @since 2.2.28 | ||
* @returns The observable sequence whose elements are pulled from the given arguments. | ||
*/ | ||
of<T>(...values: T[]): Observable<T>; | ||
/** | ||
* This method creates a new Observable instance with a variable number of arguments, regardless of number or type of the arguments. | ||
* @example | ||
* var res = Rx.Observable.ofWithScheduler(Rx.Scheduler.timeout, 1, 2, 3); | ||
* @since 2.2.28 | ||
* @param [scheduler] A scheduler to use for scheduling the arguments. | ||
* @returns The observable sequence whose elements are pulled from the given arguments. | ||
*/ | ||
* This method creates a new Observable instance with a variable number of arguments, regardless of number or type of the arguments. | ||
* @example | ||
* var res = Rx.Observable.ofWithScheduler(Rx.Scheduler.timeout, 1, 2, 3); | ||
* @since 2.2.28 | ||
* @param [scheduler] A scheduler to use for scheduling the arguments. | ||
* @returns The observable sequence whose elements are pulled from the given arguments. | ||
*/ | ||
ofWithScheduler<T>(scheduler?: IScheduler, ...values: T[]): Observable<T>; | ||
@@ -590,6 +590,6 @@ range(start: number, count: number, scheduler?: IScheduler): Observable<number>; | ||
/** | ||
* Converts a Promise to an Observable sequence | ||
* @param promise An ES6 Compliant promise. | ||
* @returns An Observable sequence which wraps the existing promise success and failure. | ||
*/ | ||
* Converts a Promise to an Observable sequence | ||
* @param promise An ES6 Compliant promise. | ||
* @returns An Observable sequence which wraps the existing promise success and failure. | ||
*/ | ||
fromPromise<T>(promise: IPromise<T>): Observable<T>; | ||
@@ -608,4 +608,4 @@ | ||
/** | ||
* Configuration option to determine whether to use native events only | ||
*/ | ||
* Configuration option to determine whether to use native events only | ||
*/ | ||
const useNativeEvents: boolean; | ||
@@ -612,0 +612,0 @@ } |
{ | ||
"name": "@types/rx-lite", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "TypeScript definitions for rx-lite", | ||
@@ -27,4 +27,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "21b82e12c7d5d01f0e517ee13040dbbad3414061f76ff1a0a96da89c2fabe804", | ||
"typesPublisherContentHash": "cccb77e598a75ed3ad873a8378f344da7d3105e1aeb75e67500922a03eaed752", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/rx-lite | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rx-lite | ||
Additional Details | ||
* Last updated: Tue, 28 Mar 2017 19:51:21 GMT | ||
* Last updated: Fri, 31 Mar 2017 18:05:15 GMT | ||
* Dependencies: rx-core, rx-core-binding | ||
@@ -14,0 +14,0 @@ * Global values: Rx |
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
53178