Type alias CompactPropertiesMappingConfig

CompactPropertiesMappingConfig: Record<string, ((value) => [string, unknown])>

A record of transformation functions that maps an existing key and value to a new key and value. The existing value is passed as the parameter to the transformation function.

Type declaration

    • (value): [string, unknown]
    • Parameters

      • value: unknown

      Returns [string, unknown]

Example

 // Defines a single transformation to map an object of type { foo: any } to { bar: "something" }
const propertyMappingConfig = {
foo: (_foosValue) => ["bar", "something"],
};

Generated using TypeDoc