Change return types in lib functions to unknown, to match documentation #32504
+3,741
−3,697
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #27496
Change return types in lib functions to unknown, to match documentation.
On April 30, 2019, RyanCavanaugh merged commit 1d83982 into the main Typescript repo. However, the JSDoc was left unchanged. MichaelTamm referenced this and wrote a PR to fix this. However, this was left unmerged and Michael has responded since.
Because documentation is important to keep up to date, I updated the JSDocs to match these changes. This is about keeping the library up to date and maintainable. I hope this is of value.