Files
start-sdk/lib/properties/PropertyGroup.ts

17 lines
460 B
TypeScript

import { PackagePropertyGroup } from "../types"
import { PropertyPage } from "./PropertyPage"
import { PropertyString } from "./PropertyString"
export class PropertyGroup {
private constructor(readonly data: PackagePropertyGroup) {}
static of(options: {
header: string | null
values: (PropertyPage | PropertyString)[]
}) {
return new PropertyGroup({
header: options.header,
value: options.values.map((x) => x.data),
})
}
}