-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
helpers.ts LookAtResultMatrix interface #14
Comments
Hi, Sorry for the late reply. Can you give me an example of code that the compiler will complain with coord being number? Looking at the screeps docs (http://support.screeps.com/hc/en-us/articles/203079011-Room#lookForAtArea), the result is a 2d array with both indices being number. I'm not sure which usage will cause a compile time error? |
Error is src\Prototypes\RoomPosition.ts(37,24): error TS2345: Argument of type 'LookAtResultMatrix | LookAtResult[] | LookAtResult' is not assignable to parameter of type 'Dictionary'.
|
@dunkndonuts : That code compiles normal for me. And I can't figure out how to reproduce the problem still. Any chance you can get a simple snippet for it? |
I adjusted my code to |
Think it should be declared as a string for named array, compiler was balking til I changed it.
The text was updated successfully, but these errors were encountered: