(key: string)
| 97 | } |
| 98 | |
| 99 | function describeKeyForErrorMessage(key: string): string { |
| 100 | const encodedKey = JSON.stringify(key); |
| 101 | return '"' + key + '"' === encodedKey ? key : encodedKey; |
| 102 | } |
| 103 | |
| 104 | export function describeValueForErrorMessage(value: mixed): string { |
| 105 | switch (typeof value) { |
no outgoing calls
no test coverage detected