Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: @types/react^18 useDeferredValue JSDoc outdated #24627

Closed
GalvinGao opened this issue May 27, 2022 · 1 comment
Closed

Bug: @types/react^18 useDeferredValue JSDoc outdated #24627

GalvinGao opened this issue May 27, 2022 · 1 comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@GalvinGao
Copy link

GalvinGao commented May 27, 2022

Apologies in advance for potential wrong category of the issue, but the documentation issue seems to link to the reactjs.org repo which is even more unrelated to the actual problem.

React version: ^18.0.0 (18.0.0)

The current behavior

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/19b70b2c6cbd626b1f861d4eef0954b0bf3fa5a5/types/react/index.d.ts#L1119-L1121 currently still references

Returns a deferred version of the value that may “lag behind” it for at most timeoutMs.

which is outdated due to the fact timeoutMs is already removed.

The expected behavior

It shows the correct documentation JSDoc as mentioned in the official React documentation

Returns a deferred version of the value that may “lag behind” it.

@GalvinGao GalvinGao added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label May 27, 2022
@joealden
Copy link

@GalvinGao this issue should be filed at https://github.com/DefinitelyTyped/DefinitelyTyped/issues.

@GalvinGao GalvinGao closed this as not planned Won't fix, can't repro, duplicate, stale May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

2 participants