Skip to content

Commit

Permalink
Update of.ts (#5027)
Browse files Browse the repository at this point in the history
* Update of.ts

Remove valid use of `of`

* reorder overloads instead

* removed deprecated tag and added more generic overloads
  • Loading branch information
kolodny authored and benlesh committed Oct 15, 2019
1 parent 8255365 commit db6f5d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/internal/observable/of.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ export function of<T, T2, T3, T4, T5, T6, T7, T8, T9>(a: T, b: T2, c: T3, d: T4,
export function of(): Observable<never>;
/** @deprecated remove in v8. Do not use generic arguments directly, allow inference or cast with `as` */
export function of<T>(): Observable<T>;
/** @deprecated remove in v8. Do not use generic arguments directly, allow inference or cast with `as` */
export function of<T>(value: T): Observable<T>;
export function of<T, U>(value1: T, value2: U): Observable<T|U>;
export function of<T, U, V>(value1: T, value2: U, value3: V): Observable<T|U|V>;
export function of<A extends Array<any>>(...args: A): Observable<ValueFromArray<A>>;
/* tslint:enable:max-line-length */

Expand Down

0 comments on commit db6f5d9

Please sign in to comment.