MCPcopy Index your code
hub / github.com/webpack/webpack-dev-server / applyStyle

Function applyStyle

client-src/overlay.js:464–470  ·  view source on GitHub ↗

* @param {HTMLElement} element element * @param {Partial } style style

(element, style)

Source from the content-addressed store, hash-verified

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

Callers 2

createContainerFunction · 0.85
showFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…