import { PackagePropertiesV2, PackagePropertyObject } from "../types"; import { Properties } from "./Properties"; export class PropertyObject { private constructor(readonly data: X) {} static of>( description: string, value: X ) { return new PropertyObject({ type: "object", description, value: value.data, }); } }