Error ------------------------------------------------------------------------------------------------------- A.js:11:24 Cannot assign `str2str(...)` to `fooNum` because `string` [1] is incompatible with `number` [2]. [incompatible-type] A.js:11:24 11| const fooNum: number = str2str(39); // Would not error if using [untyped]! ^^^^^^^^^^^ References: node_modules/react-native/str2str.js:5:49 5| module.exports = function str2str(foo: string): string { ^^^^^^ [1] A.js:11:15 11| const fooNum: number = str2str(39); // Would not error if using [untyped]! ^^^^^^ [2] Error ------------------------------------------------------------------------------------------------------- A.js:11:32 Cannot call `str2str` with `39` bound to `foo` because `39` [1] is incompatible with `string` [2]. [incompatible-type] A.js:11:32 11| const fooNum: number = str2str(39); // Would not error if using [untyped]! ^^ [1] References: node_modules/react-native/str2str.js:5:40 5| module.exports = function str2str(foo: string): string { ^^^^^^ [2] Error -------------------------------------------------------------------------------------------------------- A.js:14:9 Cannot call `str2str` with `39` bound to `foo` because `39` [1] is incompatible with `string` [2]. [incompatible-type] A.js:14:9 14| str2str(39); ^^ [1] References: node_modules/react-native/str2str.js:5:40 5| module.exports = function str2str(foo: string): string { ^^^^^^ [2] Error -------------------------------------------------------------------------------------------------------- B.js:4:28 Cannot assign `React.unstable_AsyncMode` to `AsyncMode` because `void` [1] is incompatible with `boolean` [2]. [incompatible-type] B.js:4:28 4| const AsyncMode: boolean = React.unstable_AsyncMode; ^^^^^^^^^^^^^^^^^^^^^^^^ [1] References: B.js:4:18 4| const AsyncMode: boolean = React.unstable_AsyncMode; ^^^^^^^ [2] Error -------------------------------------------------------------------------------------------------------- B.js:4:34 Cannot get `React.unstable_AsyncMode` because property `unstable_AsyncMode` is missing in `{}` [1]. [prop-missing] B.js:4:34 4| const AsyncMode: boolean = React.unstable_AsyncMode; ^^^^^^^^^^^^^^^^^^ References: /prelude.js:106:16 106| declare module 'react' { ^^^^^^^ [1] Found 5 errors