Damian ReevesD
Denoβ€’2y agoβ€’
2 replies
Damian Reeves

Creating custom ops for deno_core that take in arrays and strucks

I am interested in creating custom ops for deno_core.
I have one case where I want to take in a Vec<String> and return a Result that possibly includes my own custom enum type or struct as a result.
Secondly I want to be able to pass my own custom struct to my op.
What do I need to do to achieve this?
Was this page helpful?