MCPcopy Create free account
hub / github.com/microsoft/SandDance / concatStyleSetsWithProps

Function concatStyleSetsWithProps

docs/app/js/sanddance-app.js:22457–22472  ·  view source on GitHub ↗
(styleProps)

Source from the content-addressed store, hash-verified

22455 */ parcelHelpers.export(exports, "concatStyleSetsWithProps", ()=>concatStyleSetsWithProps);
22456var _concatStyleSets = require("./concatStyleSets");
22457function concatStyleSetsWithProps(styleProps) {
22458 var allStyles = [];
22459 for(var _i = 1; _i < arguments.length; _i++)allStyles[_i - 1] = arguments[_i];
22460 var result = [];
22461 for(var _a = 0, allStyles_1 = allStyles; _a < allStyles_1.length; _a++){
22462 var styles = allStyles_1[_a];
22463 if (styles) result.push(typeof styles === "function" ? styles(styleProps) : styles);
22464 }
22465 if (result.length === 1) return result[0];
22466 else if (result.length) // cliffkoh: I cannot figure out how to avoid the cast to any here.
22467 // It is something to do with the use of Omit in IStyleSet.
22468 // It might not be necessary once Omit becomes part of lib.d.ts (when we remove our own Omit and rely on
22469 // the official version).
22470 return (0, _concatStyleSets.concatStyleSets).apply(void 0, result);
22471 return {};
22472}
22473
22474},{"./concatStyleSets":"4uvUY","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"7Zddc":[function(require,module,exports) {
22475var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected