How do I get a function type of a property?

Right now I am working with servicewrappers which is a module that wraps services and adds custom functions and methods to them.

But there is a problem with callbacks, like for example the MarketplaceService.ProcessReceipt.

When I want to connect the MarketplaceService.ProcessReceipt to a function then the servicewrapper will make it a custom property instead of creating a callback.

I use the custom Service module with a metatable __index = function(Table, Index) end to indentify what typeof property or function it needs to return when getting the service.

So know how to see if a property is a callback?

Sorry if this post is not clearly Iā€™m new to posting on the devforum :blush:

1 Like