import { getMetadataFromDecorator } from '../utils.js';
/** Marks a class as an embeddable type (legacy TypeScript decorator). */
export function Embeddable(options = {}) {
  return function (target) {
    const meta = getMetadataFromDecorator(target);
    meta.class = target;
    meta.name = meta.class.name;
    meta.embeddable = true;
    Object.assign(meta, options);
    return target;
  };
}
