@tempots/ui
MakeParams type
Represents a type that transforms a tuple of strings into an object with string keys. If the input type is a tuple, each element of the tuple will become a key in the resulting object, with the corresponding value being a string. If the input type is not a tuple, the resulting type will be never
.
Signature:
export type MakeParams = P extends string[] ? {
[K in TupleToUnion
]: string;
} : never;