Canboat ts-pgns
    Preparing search index...

    Function mapCamelCaseKeys

    • Maps the keys of a PGN object to camelCase names based on its definition.

      This function transforms the keys of the provided PGN object by looking up a matching definition, and then mapping field IDs to their corresponding camelCase field names. It handles both regular and repeating fields, and supports PGN objects with or without a fields property.

      Parameters

      • pgn: PGN

        The PGN object to map.

      Returns any

      An object with keys mapped to camelCase field names, including nested fields and repeating field sets.

      If no matching definition is found for the provided PGN object.