For example, I have a custom resource EventHandler
, and I want to export it likeexport (EventHandler) var event
. But, if I try this, I will catch an error. I don't want to export basicResource
type. Should I write some kind of C++ extension? How can i do this?