#`declare global`. `:` and `=`. When to use what?
25 messages · Page 1 of 1 (latest)
this is literally what the syntax is, yes
that was the question
this for the object is only captured in normal functions, not arrow functions
I know this, I had it with function too in the delcare global, this is just any and I have to manually declare its type
I currently have to explicitly state
self(or this) as the first arg but I do not like it so much
this is completely unrelated to:vs=
this: {health: number}
yeah sorry this was a different issue, I resolved it
if you have an implementation, why are you using declare global to begin with?
because it does not exist in my mod
what do you mean by "this is any"
you aren't accessing it
if you don't have an implementation, you can't access it
except as a return type i guess, but you aren't using that either
ok it makes sense
!resolved
thanks