Function transformKeys

  • transformKeys<T>(attributes: Record<string, any>, casing?: "camel" | "snake"): T
  • Utility to recursively format the keys according to the server argument.

    Returns

    Type Parameters

    • T = Record<string, any>

    Parameters

    • attributes: Record<string, any>

      The object which should be formatted.

    • Optional casing: "camel" | "snake"

      Whether to use camelCase or snake_case.

    Returns T

Generated using TypeDoc