diff --git a/types/react-reconciler/ReactFiberReconciler.d.ts b/types/react-reconciler/ReactFiberReconciler.d.ts index 46f163038a..aa8ed61fe5 100644 --- a/types/react-reconciler/ReactFiberReconciler.d.ts +++ b/types/react-reconciler/ReactFiberReconciler.d.ts @@ -228,20 +228,14 @@ export interface Reconciler { flushRoot(root: OpaqueRoot, expirationTime: ExpirationTime): void; requestWork(root: OpaqueRoot, expirationTime: ExpirationTime): void; computeUniqueAsyncExpiration(): ExpirationTime; - batchedUpdates(fn: (a: A) => R, a: A): R; - unbatchedUpdates(fn: (a: A) => R, a: A): R; + batchedUpdates(fn: () => A): A; + unbatchedUpdates(fn: () => A): A; deferredUpdates(fn: () => A): A; - syncUpdates( - fn: (a: A, b: B, c: C0, d: D) => R, - a: A, - b: B, - c: C0, - d: D, - ): R; - interactiveUpdates(fn: (a: A, b: B) => R, a: A, b: B): R; + syncUpdates(fn: () => A): A; + interactiveUpdates(fn: () => A): A; flushInteractiveUpdates(): void; flushControlled(fn: () => any): void; - flushSync(fn: (a: A) => R, a: A): R; + flushSync(fn: () => A): A; // Used to extract the return value from the initial render. Legacy API. getPublicRootInstance(