(value: mixed)
| 153 | } |
| 154 | |
| 155 | export function checkHtmlStringCoercion(value: mixed): void | string { |
| 156 | if (__DEV__) { |
| 157 | if (willCoercionThrow(value)) { |
| 158 | console.error( |
| 159 | 'The provided HTML markup uses a value of unsupported type %s.' + |
| 160 | ' This value must be coerced to a string before using it here.', |
| 161 | typeName(value), |
| 162 | ); |
| 163 | return testStringCoercion(value); // throw (to help callers find troubleshooting comments) |
| 164 | } |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | export function checkFormFieldValueStringCoercion(value: mixed): void | string { |
| 169 | if (__DEV__) { |
no test coverage detected