Skip to content

Commit

Permalink
fix(src): usage of TypeScript v2.1 is a breaking change
Browse files Browse the repository at this point in the history
BREAKING CHANGES:
This version of xstream can only be used with TypeScript v2.1 or higher.
  • Loading branch information
staltz committed Dec 21, 2016
1 parent c7f7db7 commit c69327e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ export interface InternalProducer<T> {
_stop: () => void;
}

export interface Producer<T> {
start: (listener: Listener<T>) => void;
stop: () => void;
}

export interface Listener<T> {
next: (x: T) => void;
error: (err: any) => void;
complete: () => void;
}

export interface OutSender<T> {
out: Stream<T>;
}
Expand All @@ -45,17 +56,6 @@ export interface Aggregator<T, U> extends InternalProducer<U>, OutSender<U> {
_start: (out: Stream<U>) => void;
}

export interface Producer<T> {
start: (listener: Listener<T>) => void;
stop: () => void;
}

export interface Listener<T> {
next: (x: T) => void;
error: (err: any) => void;
complete: () => void;
}

export interface Subscription {
unsubscribe(): void;
}
Expand Down

0 comments on commit c69327e

Please sign in to comment.