(value: mixed)
| 89 | } |
| 90 | |
| 91 | export function checkKeyStringCoercion(value: mixed): void | string { |
| 92 | if (__DEV__) { |
| 93 | if (willCoercionThrow(value)) { |
| 94 | console.error( |
| 95 | class="st">'The provided key is an unsupported type %s.' + |
| 96 | class="st">' This value must be coerced to a string before using it here.', |
| 97 | typeName(value), |
| 98 | ); |
| 99 | return testStringCoercion(value); class="cm">// throw (to help callers find troubleshooting comments) |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | export function checkPropStringCoercion( |
| 105 | value: mixed, |
no test coverage detected