Hey I have an anonymous object structure that I wa...
# getting-started
k
Hey I have an anonymous object structure that I want to take as a parameter in a function, what do I put for the type on the parameter?
s
An anonymous object structure?
it kind of sounds like you want
Any
but that doesn't sound useful
if your object generally conforms to a certain shape, you can declare an interface and have these objects implement it
k
Thanks, I ended up extracting it into an actual class anyway.