/**
 * @license
 * Copyright 2022-2025 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Semantics } from "#decoration/semantics/Semantics.js";
import { Decorator } from "#general";
import { FieldModel } from "#models/FieldModel.js";
import { Schema } from "#models/Schema.js";
function listOf(entry) {
  return Decorator((_target, context) => {
    Semantics.of(context).mutableModel.operationalBase = new FieldModel(
      {
        name: context.name.toString(),
        type: "list"
      },
      new FieldModel({
        name: "entry",
        operationalBase: Schema(entry)
      })
    );
  });
}
export {
  listOf
};
//# sourceMappingURL=listOf.js.map
