summaryrefslogtreecommitdiff
path: root/u/types/misc.ts
blob: 77833c4f2cc8c1f59c0f30b2ac88af704ed9aa6f (plain)
1
2
3
export type ObjectFromList<T extends ReadonlyArray<string | number | symbol>, V = string> = {
    [K in T extends ReadonlyArray<infer U> ? U : never]: V;
};