Skip to content

Commit

Permalink
refactor(PropagateTask): remove now-unused arg from PropagateTaskRun (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
briancavalier authored Jul 19, 2017
1 parent a96c70c commit 4e0d3db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export type PropagateTask<A> = Task & {
active: boolean
}

export type PropagateTaskRun<A> = (time: Time, value: A, sink: Sink<A>, task: PropagateTask<A>) => any
export type PropagateTaskRun<A> = (time: Time, value: A, sink: Sink<A>) => any

declare export function propagateTask<A> (run: PropagateTaskRun<A>, value: A, sink: Sink<A>): PropagateTask<A>
declare export function propagateEventTask<A> (value: A, sink: Sink<A>): PropagateTask<A>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/scheduler/PropagateTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class PropagateTask {
return
}
const run = this._run
run(t, this.value, this.sink, this)
run(t, this.value, this.sink)
}

error (t, e) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/type-definitions/PropagateTask.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function propagateErrorTask(error: Error, sink: Sink<any>): PropagateTask
export function propagateErrorTask(error: Error): (sink: Sink<any>) => PropagateTask<any>;

export type PropagateTaskRun<A> =
(time: number, value: A, sink: Sink<A>, task: PropagateTask<A>) => any
(time: number, value: A, sink: Sink<A>) => any

export interface PropagateTask<A> extends Task {
value: A;
Expand Down

0 comments on commit 4e0d3db

Please sign in to comment.