Here’s an example:
Anonymous Structures & Type Inference
With that said, I hope this helps and use them for quick objects in your code. But if you want to be thorough, create a typedef (type definition).
For more information, you can use the link below.
Stay tuned as there will be more posts in the future getting into the nitty gritty questions you might have with Haxe!