"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWatchFields = void 0;
const getWatchFields = (steps) => {
    const watchedFields = new Set([]);
    steps.forEach(({ shouldSkip }) => {
        if (shouldSkip) {
            const { observableFields } = shouldSkip;
            observableFields.forEach((field) => watchedFields.add(field));
        }
    });
    return Array.from(watchedFields);
};
exports.getWatchFields = getWatchFields;
