Skip to content
This repository was archived by the owner on Dec 31, 2020. It is now read-only.

Commit d300e58

Browse files
committed
Fix type declaration
1 parent b984934 commit d300e58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/optimizeScheduler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { configure } from "mobx"
22

3-
interface TBatchedUpdated {
3+
export interface IBatchedUpdates {
44
batchedUpdates<A, B>(callback: (a: A, b: B) => any, a: A, b: B): void
55
batchedUpdates<A>(callback: (a: A) => any, a: A): void
66
batchedUpdates(callback: () => any): void
77
}
88

9-
export const optimizeScheduler = (reactionScheduler: TBatchedUpdated) => {
9+
export const optimizeScheduler = (reactionScheduler: IBatchedUpdates) => {
1010
if (typeof reactionScheduler === "function") {
1111
configure({ reactionScheduler })
1212
}

0 commit comments

Comments
 (0)