Skip to content

Commit

Permalink
refactor(interfaces): replace type aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Nov 4, 2017
1 parent cff9dfa commit 074f95e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Observable } from './Observable';

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

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

export type FactoryOrValue<T> = T | (() => T);

export type MonoTypeOperatorFunction<T> = OperatorFunction<T, T>;
export interface MonoTypeOperatorFunction<T> extends OperatorFunction<T, T> {}

0 comments on commit 074f95e

Please sign in to comment.