Dex TypeScript SDK 1.30.0
    Preparing search index...

    Type Alias AttributeReadValues<Reads>

    AttributeReadValues: {
        -readonly [Index in keyof Reads]: Reads[Index] extends infer Read
            ? Read extends Attribute<infer T>
                ? T | undefined
                : Read extends AttributeMapInstance<infer T> ? T | undefined : never
            : never
    }

    Maps a tuple of AttributeRead values to the result tuple of Client.getAttributes.

    Each element has the selected value type or undefined. undefined means the Attribute or AttributeMap instance is not set. The elements keep the order of the reads.

    Type Parameters

    • Reads extends readonly AttributeRead<unknown>[]

      Tuple of reads passed to getAttributes.

    type Values = AttributeReadValues<[Attribute<string>, AttributeMapInstance<Note>]>;
    // Values is [string | undefined, Note | undefined].