"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Component = void 0;
/**
 * Utilities for helping implement various application component design patterns.
 * @alpha
 */
var Component;
(function (Component) {
    /**
     * Combine multiple {@link Component.ComponentSchemaCollection}s into a single {@link AllowedTypes} array.
     * @remarks
     *
     * @alpha
     */
    function composeComponentSchema(allComponents, lazyConfiguration) {
        const itemTypes = allComponents.flatMap((component) => component(lazyConfiguration));
        return itemTypes;
    }
    Component.composeComponentSchema = composeComponentSchema;
})(Component || (exports.Component = Component = {}));
//# sourceMappingURL=component.js.map