This commit is contained in:
virgosoy 2025-05-05 20:41:49 +00:00 committed by GitHub
commit 71c4517b73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -791,6 +791,9 @@ function getInvalidTypeMessage(
* dev only
*/
function styleValue(value: unknown, type: string): string {
if (typeof value === 'symbol') {
value = value.toString()
}
if (type === 'String') {
return `"${value}"`
} else if (type === 'Number') {