(raw: unknown)
| 109 | } |
| 110 | |
| 111 | function ssrResetCssVars(raw: unknown) { |
| 112 | if (!isArray(raw) && isObject(raw)) { |
| 113 | const res: Record<string, unknown> = {} |
| 114 | for (const key in raw) { |
| 115 | // `:` prefixed keys are coming from `ssrCssVars` |
| 116 | if (key.startsWith(':--')) { |
| 117 | res[key.slice(1)] = normalizeCssVarValue(raw[key]) |
| 118 | } else { |
| 119 | res[key] = raw[key] |
| 120 | } |
| 121 | } |
| 122 | return res |
| 123 | } |
| 124 | return raw |
| 125 | } |
no test coverage detected