Can I change the type of numbered lists from integer to custom class #1415
-
This is a concept question and the answer of "its not really practical/sensible" is fine. In Factorio (PC Game) modding there is a This means that all of our API calls provide/expect a To avoid lots of @cast and @as I wondered if it was possible/practical to have the key in an array "[]" as a I tried having a mess around to do this, but I couldn't find the right place to make the change(s)and I was using old changelog notes that refer to types in pairs() as a guide. EDIT:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I am having trouble understanding the question. You are able to get the |
Beta Was this translation helpful? Give feedback.
I am having trouble understanding the question.
You are able to get the
uint
"type" by doing the above code, but you are looking for a way to do this without having to annotate---@class uint : integer
?