Skip to content

Commit

Permalink
fixup! fix(types): support union type inference for merge operators
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Jan 9, 2019
1 parent ffda319 commit d8aa385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/internal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ export interface SchedulerLike {
now(): number;
schedule<T>(work: (this: SchedulerAction<T>, state?: T) => void, delay?: number, state?: T): Subscription;
}

export interface SchedulerAction<T> extends Subscription {
schedule(state?: T, delay?: number): Subscription;
}

export type ObservedValueOf<O> = O extends ObservableInput<infer T> ? T : never;

0 comments on commit d8aa385

Please sign in to comment.