Repository navigation
Commit 0b91823
Annotate signatures affected by precise template literal types (#58805)
Summary:
Pull Request resolved: #58805
A Flow change makes the type inferred for template literals be precise TemplateLiteral signature values instead of widening to string. Exported `const`s holding templates (and `const`s referenced from template substitutions) now pull call expressions into signature verification, producing signature-verification-failure errors.
Annotate the affected sites with `string` or `number` to prevent errors.
Changelog: [internal]
Reviewed By: SamChou19815
Differential Revision: D122889516
fbshipit-source-id: 961d3d8591d2b6731ae49a3ed2c01a4581b090b91 parent 3928a43 commit 0b91823
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments