• Creates an info lookup object from a more nicely-formatted table. See below for examples.

    Note: Using as const on the arguments to this function is necessary to infer the correct type.

    Type Parameters

    • Members extends readonly string[]

    • Defaults extends readonly unknown[]

    • Table extends {
          [k: string]: readonly unknown[];
      }

    Parameters

    • members: Members
    • defaults: Defaults
    • table: Table

    Returns {
        readonly [k in keyof Table]: ResolveType<ZipKeysWithValues<Members, Table[k], Defaults>>
    }

Generated using TypeDoc