From db6f5d9f95cba26e57b4427b10245b522e4fb69d Mon Sep 17 00:00:00 2001 From: Moshe Kolodny Date: Mon, 14 Oct 2019 21:13:20 -0400 Subject: [PATCH] Update of.ts (#5027) * Update of.ts Remove valid use of `of` * reorder overloads instead * removed deprecated tag and added more generic overloads --- src/internal/observable/of.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/internal/observable/of.ts b/src/internal/observable/of.ts index ee76acd39f..05226c36bf 100644 --- a/src/internal/observable/of.ts +++ b/src/internal/observable/of.ts @@ -34,8 +34,9 @@ export function of(a: T, b: T2, c: T3, d: T4, export function of(): Observable; /** @deprecated remove in v8. Do not use generic arguments directly, allow inference or cast with `as` */ export function of(): Observable; -/** @deprecated remove in v8. Do not use generic arguments directly, allow inference or cast with `as` */ export function of(value: T): Observable; +export function of(value1: T, value2: U): Observable; +export function of(value1: T, value2: U, value3: V): Observable; export function of>(...args: A): Observable>; /* tslint:enable:max-line-length */