* @param {HTMLElement} element element * @param {Partial } style style
(element, style)
| 462 | * @param {Partial<CSSStyleDeclaration>} style style |
| 463 | */ |
| 464 | function applyStyle(element, style) { |
| 465 | Object.keys(style).forEach((prop) => { |
| 466 | element.style[/** @type {CSSStyleDeclarationKeys} */ (prop)] = |
| 467 | /** @type {string} */ |
| 468 | (style[/** @type {CSSStyleDeclarationKeys} */ (prop)]); |
| 469 | }); |
| 470 | } |
| 471 | |
| 472 | /** |
| 473 | * @param {string | false | undefined} trustedTypesPolicyName trusted types police name |
no outgoing calls
no test coverage detected
searching dependent graphs…