Skip to content

gi-nx


gi-nx / patchProperties

ts
function patchProperties(projects: ProjectFeatureCollection, newProps: (f: Feature) => Record<string, number | string | boolean>): Promise<void[]>;

Parameters

ParameterTypeDescription
projectsProjectFeatureCollectionFeatureCollection of projects to update
newProps(f: Feature) => Record<string, number | string | boolean>Function that returns new properties for each feature

Returns

Promise<void[]>

Promise that resolves when all patches are complete