-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inline
SourceLocation
, obviate missing "@types/babel__code-frame" d…
…ependency Summary: Remove a dependency on the TypeScript types for `babel/code-frame` by inlining the definition we need. This also tightens it up (this is an output type, so that's non-breaking) to match the (enforced) Flow type, which is much more strict: https://github.com/facebook/metro/blob/v0.76.1/flow-typed/babel.js.flow#L33-L36 For reference, the Babel type previously imported was this: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/a785fc80eb9e588cdef1e4c008225e167a8d925f/types/babel__code-frame/index.d.ts#L7-L10 Changelog: ``` * **[Types]** Remove dependency on `types/babel__code-frame` ``` Reviewed By: huntie Differential Revision: D44928583 fbshipit-source-id: 7b50e111d2f62da0a7d0bc6365923fc33bf99e50
- Loading branch information
1 parent
9846a9c
commit 41cdc03
Showing
3 changed files
with
4 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters