DEV Community

loading...

Discussion on: Type | Treat Challenge 3

Collapse
levenleven profile image
Aleksey Levenstein
type Spots = typeof trunkOrTreatSpots[number];

type TrunkOrTreatResults = {
    [Spot in Spots]: {
        done: boolean,
        who: string,
        loot: Record<string, any>
    }
}
Enter fullscreen mode Exit fullscreen mode