forked from Aliucord/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: All imports are treated as "type" definitions regardless of whether or not they have a "type" kind. You can import classes and enums as values and use them in type locations. Additionally namespace imports can be used in a type location (eg `React.MixedElement`). Because we don't have cross-file information, we cannot statically determine if an imported thing is a "type referencible" thing, so we have to just treat all imports as possible types. This diff marks all import bindings as type definitions. Reviewed By: evanyeung Differential Revision: D33574248 fbshipit-source-id: b6dc10dc2afb8ad01e0dbfbe40d0dab25b0ec297
- Loading branch information
1 parent
678b569
commit 8bebc9b
Showing
2 changed files
with
8 additions
and
10 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