allow for arbitrary grouping of property values and intro PropertyPage

This commit is contained in:
Matt Hill
2023-05-03 14:56:41 -06:00
parent 8801760aa6
commit e645854d18
4 changed files with 36 additions and 16 deletions

View File

@@ -19,7 +19,7 @@ export type UnionToIntersection<T> = ((x: T) => any) extends (x: infer R) => any
export function setupProperties<WrapperData>(
fn: (args: {
wrapperData: WrapperData
}) => void | Promise<void> | Promise<(PropertyGroup | PropertyString)[]>,
}) => void | Promise<void> | Promise<PropertyGroup[]>,
): ExpectedExports.properties {
return (async (options) => {
const result = await fn(