Skip to content

Commit

Permalink
fix: use empty object type
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Oct 15, 2020
1 parent a404e56 commit fca6b0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/internal/observable/combineLatest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export function combineLatest<R>(
): Observable<R>;

// combineLatest({})
export function combineLatest(sourcesObject: {}): Observable<never>;
export function combineLatest(sourcesObject: { [K in any]: never }): Observable<never>;
export function combineLatest<T>(sourcesObject: T): Observable<{ [K in keyof T]: ObservedValueOf<T[K]> }>;

/* tslint:enable:max-line-length */
Expand Down
5 changes: 3 additions & 2 deletions src/internal/observable/forkJoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ export function forkJoin<A extends readonly unknown[]>(sources: [...ObservableIn
export function forkJoin<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A>;

// forkJoin({a, b, c})
export function forkJoin(sourcesObject: {}): Observable<never>;
export function forkJoin(sourcesObject: { [K in any]: never }): Observable<never>;
export function forkJoin<T>(sourcesObject: T): Observable<{ [K in keyof T]: ObservedValueOf<T[K]> }>;

// forkJoin(a, b, c, resultSelector)
/** @deprecated resultSelector is deprecated, pipe to map instead */
/** @deprecated resultSelector is deprecated, pipe to map instead */

export function forkJoin(...args: Array<ObservableInput<any> | ((...args: any[]) => any)>): Observable<any>;

/**
Expand Down

0 comments on commit fca6b0f

Please sign in to comment.