-
Notifications
You must be signed in to change notification settings - Fork 47.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update on "[compiler] Type inference for tagged template literals"
At Meta we have a pattern of using tagged template literals for features that are compiled away: ``` // Relay: graphql`...graphql text...` ``` In many cases these tags produce a primitive value, and we can get even more optimal output if we can tell the compiler about these types. The new moduleTypeProvider gives us the ability to declare such types, this PR extends the compiler to use this type information for TaggedTemplateExpression values. [ghstack-poisoned]
- Loading branch information
Showing
10 changed files
with
15 additions
and
549 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
123 changes: 0 additions & 123 deletions
123
...ixtures/compiler/type-provider-hooklike-name-not-typed-as-hook-import.expect.md
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
.../src/__tests__/fixtures/compiler/type-provider-hooklike-name-not-typed-as-hook-import.tsx
This file was deleted.
Oops, something went wrong.
145 changes: 0 additions & 145 deletions
145
...xtures/compiler/type-provider-import-object-typed-module-as-hook-name.expect.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.