From 14f80318afc340acde17b1fbed5b882020e4e84f Mon Sep 17 00:00:00 2001 From: Adam Thompson-Sharpe Date: Sat, 28 May 2022 10:36:19 -0400 Subject: [PATCH] Remove `timeoutMs` mentions from JSDoc --- types/react/index.d.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index d6f31f7789f12e..4af7071cdb35f9 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -1117,7 +1117,7 @@ declare namespace React { } /** - * Returns a deferred version of the value that may “lag behind” it for at most `timeoutMs`. + * Returns a deferred version of the value that may “lag behind” it. * * This is commonly used to keep the interface responsive when you have something that renders immediately * based on user input and something that needs to wait for a data fetch. @@ -1141,9 +1141,7 @@ declare namespace React { * The first is a boolean, React’s way of informing us whether we’re waiting for the transition to finish. * The second is a function that takes a callback. We can use it to tell React which state we want to defer. * - * **If some state update causes a component to suspend, that state update should be wrapped in a transition.** - * - * @param config An optional object with `timeoutMs` + * **If some state update causes a component to suspend, that state update should be wrapped in a transition.**` * * @see https://reactjs.org/docs/concurrent-mode-reference.html#usetransition */