Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update globals.d.ts for File declaration in Typescript (#38165)
Summary: In Webstorm or VSCode when using Typescript the declaration of the class "File" is missing. So both IDEs show "File" as error. With this change it fixes the issue #38061 . ## Changelog: [GENERAL] [FIXED] Fixed missing File declaration in Typescript global.d.ts <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #38165 Test Plan: I ran `yarn run test-typescript` with no error After that i initialized a new react-native project and installed the react-native library with my local changes of global.d.ts. Webstorm and VSCode now find the declaration of "File" and don't show "File" as error and suggest the right parameters. Reviewed By: rshest Differential Revision: D47209461 Pulled By: cortinico fbshipit-source-id: 0884dfe786ea3a5070aa0a487a8e74463c8f1a0f
- Loading branch information