Spent all evening having typescript kick my ass!
I'm trying to specify that a value in an object passed to a class must be used in another field in that same object
new Thing({ filters:[{key:'book'},{key:'woop'}], pick: 'book' })
Where pick has to be either book or woop in this instance.
over 2 years ago