ObjectFromMappingEntries<M>: {
    [K in keyof M as K extends `${number}`
        ? ToExtPropKey<M[K][0]>
        : never]: M[K][1] extends readonly [LeafValue, LeafValue]
        ? Flatten<Flatten<M[K][1]>>
        : M[K][1] extends MappingEntries
            ? ObjectFromMappingEntries<M[K][1]>
            : M[K][1] extends RoArray<LeafValue>
                ? Flatten<Flatten<M[K][1]>>
                : M[K][1] extends LeafValue
                    ? M[K][1][0][0]
                    : M[K][1]
}

Type Parameters

  • M extends MappingEntries

Generated using TypeDoc