Closed mindler-sasu closed 6 months ago
The typing is actually nto correct yet. Trying to solve it.
type a = ObjectFullPaths<{ tuple: [{ bar: "beer" }, { beer: "karhu" }] }>;
// "tuple" | "tuple[0]" | "tuple[1]" | "tuple[0].beer" | "tuple[0].bar" | "tuple[1].beer" | "tuple[1].bar"
should be
// "tuple" | "tuple[0]" | "tuple[1]" | "tuple[0].bar" | "tuple[1].beer"
Now works correctly
Allows only to select elements of the tuple type