import { __awaiter } from "tslib";
import { DynamicItemExtensionBase } from '@anglr/dynamic';
/**
 * Extension that sets custom component data to instance
 */
export class CustomComponentDataExtension extends DynamicItemExtensionBase {
    //######################### public methods - overrides #########################
    /**
     * @inheritdoc
     */
    onInit() {
        return __awaiter(this, void 0, void 0, function* () {
            if (this.instance) {
                yield this.instance.processCustomComponentData(this.metadata.name);
            }
        });
    }
}
//# sourceMappingURL=customComponentData.extension.js.map