Skip to content

Commit

Permalink
refactor(interfaces): make UnaryFunction and OperatorFunction more co…
Browse files Browse the repository at this point in the history
…ncise

Thanks, David!
  • Loading branch information
benlesh committed Jun 15, 2017
1 parent c4125ff commit cb1f6d2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { Observable } from './Observable';

export interface UnaryFunction<T, R> {
(source: T): R;
}
export type UnaryFunction<T, R> = (source: T) => R;

export interface OperatorFunction<T, R> extends UnaryFunction<Observable<T>, Observable<R>> {
}
export type OperatorFunction<T, R> = UnaryFunction<Observable<T>, Observable<R>>;

0 comments on commit cb1f6d2

Please sign in to comment.