Skip to content

Commit

Permalink
fix(rstream): add generics for stream()
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Aug 6, 2018
1 parent ec777c0 commit 378772f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rstream/src/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ import { Subscription } from "./subscription";
* @param id
* @param src
*/
export function stream(): Stream<any>;
export function stream(id: string): Stream<any>;
export function stream<T>(): Stream<T>;
export function stream<T>(id: string): Stream<T>;
export function stream<T>(src: StreamSource<T>);
export function stream<T>(src: StreamSource<T>, id: string);
export function stream(src?, id?) {
Expand Down

0 comments on commit 378772f

Please sign in to comment.