JS and CS calling

Hello,
I have one problem, I have one user defined data type in JS and I need to define object using data type from JS into CS, how can I do this ?

Thanks

You need to put your JS in the “Standard Assets”, or “Pro Standard Assets”, or “Plugins” and keep your C# out of those folders as per: Unity - Scripting API:

Reason being, this way your JS gets compiled first and thus exposed to the C# code.

Beyond that, your best bet is to simply keep your code in one language if possible.

SOLVED.
Thanks for help, I did just what you say.