H
Hono4w ago
LukeZ

How to properly type Variables bound to the context?

I read that I can set a variables with c.set(...) and I also noticed there is a generic type for that. However, I can't get it to work why I customize the type. I want to say that I have a variable myVar bound which is of type MyClass. How can I achieve that?
4 Replies
LukeZ
LukeZOP4w ago
I tried at, I will try again.
ambergristle
ambergristle4w ago
tried what?
LukeZ
LukeZOP4w ago
welp, I did it now. can't remember what I did before that

Did you find this page helpful?