biofriction-wp-theme/node_modules/rx/ts/core/es6.ts

32 lines
844 B
TypeScript

/// <reference path="./es6-iterable.d.ts" />
/// <reference path="./es6-promise.d.ts" />
module Rx {
// Type alias for observables and promises
export type ObservableOrPromise<T> = IObservable<T> | Observable<T> | Promise<T>;
export type ArrayLike<T> = Array<T> | { length: number;[index: number]: T; };
// Type alias for arrays and array like objects
export type ArrayOrIterable<T> = ArrayLike<T> | Iterable<T>;
/**
* Promise A+
*/
export interface Promise<T> extends PromiseLike<T> { }
/**
* Promise A+
*/
export interface IPromise<T> extends PromiseLike<T> { }
/**
* Represents a push-style collection.
*/
export interface IObservable<T> { }
/**
* Represents a push-style collection.
*/
export interface Observable<T> extends IObservable<T> { }
}