TypedFromEntries | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Type Alias TypedFromEntries<T>

    TypedFromEntries: { [C in T as C[0]]: C[1] }

    Given a union of [key, value] types, returns the object constructed from those pairs. Exists because Object.fromEntries does not take the type of the keys and values into account.

    Type Parameters

    • T extends [string, unknown]

      Union of [key, value] pairs