Skip to content

Commit 780212a

Browse files
panagosg7facebook-github-bot
authored andcommitted
Annotate signatures affected by precise template literal types (#58805)
Summary: 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
1 parent 7c007b3 commit 780212a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/react-native/scripts/codegen/generate-artifacts-executor

‎packages/react-native/scripts/codegen/generate-artifacts-executor/constants.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
const fs = require('node:fs');
1414
const path = require('node:path');
1515

16-
const REACT_NATIVE_REPOSITORY_ROOT = path.join(
16+
const REACT_NATIVE_REPOSITORY_ROOT /*: string */ = path.join(
1717
__dirname,
1818
'..',
1919
'..',

0 commit comments

Comments
 (0)