mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 18:31:54 +00:00
19 lines
492 B
TypeScript
19 lines
492 B
TypeScript
import { PackagePropertyGroup } from "../types";
|
|
import { PropertyString } from "./PropertyString";
|
|
|
|
export class PropertyGroup {
|
|
private constructor(readonly data: PackagePropertyGroup) {}
|
|
static of(options: {
|
|
description: string;
|
|
value: (PropertyGroup | PropertyString)[];
|
|
name: string;
|
|
}) {
|
|
return new PropertyGroup({
|
|
type: "object",
|
|
name: options.name,
|
|
description: options.description,
|
|
value: options.value.map((x) => x.data),
|
|
});
|
|
}
|
|
}
|