core-utils
    Preparing search index...

    Type Alias AttributeFields<DocumentT>

    AttributeFields: DocumentT["data"] extends (infer R extends Data)[]
        ? keyof R["attributes"]
        : DocumentT["data"] extends Data
            ? keyof DocumentT["data"]["attributes"]
            : never

    JSON:API attribute fields for use in fields queries.

    Type Parameters