Skip to content

Commit

Permalink
Add generic typing to hasDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluefinger committed May 17, 2019
1 parent b9cc445 commit 7db5605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatchers/recursiveDispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { markActive } from "./helpers/markActive";
import { markDependencies } from "./helpers/markDependencies";
import { shouldApplyValue } from "./helpers/shouldApplyValue";

const hasDependencies = (cell: Cell<any>) => {
const hasDependencies = <T>(cell: Cell<T>) => {
markActive(cell);
if (cell.dependents.length) {
updateDependencies(cell);
Expand Down

0 comments on commit 7db5605

Please sign in to comment.