• Replaces fieldToRemove with fieldToAdd when used with our viewTranslator. Performs no processing to tidy the value stored at the field.

    Parameters

    • fieldToRemove: string

      Field to remove.

    • fieldToAdd: string

      New name to store data that was stored at fieldToRemove.

    Returns ((result, value) => Record<string, unknown>)

    A function to set the value of a field for some JSON value

      • (result, value): Record<string, unknown>
      • Parameters

        • result: Record<string, unknown>
        • value: unknown

        Returns Record<string, unknown>

Generated using TypeDoc