Skip to content
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

Room.getTerrain( ) is missing #102

Closed
incherre opened this issue Oct 13, 2018 · 0 comments · Fixed by #103
Closed

Room.getTerrain( ) is missing #102

incherre opened this issue Oct 13, 2018 · 0 comments · Fixed by #103

Comments

@incherre
Copy link

incherre commented Oct 13, 2018

I noticed that while the RoomTerrain type is there, the Room type doesn't have the method that generates it. docs.screeps.com/api/#Room.getTerrain

Expected Behavior

getTerrain is suggested and is not marked as incorrect when used

Actual Behavior

getTerrain is not suggested and is marked as incorrect when used

Sample code (if available)

function test (room: Room): void {
    const terrain: RoomTerrain = room.getTerrain();
}

Your Environment

  • Node.js version: v8.12.0
  • TypeScript version: 2.6
  • @types/screeps version: 2.5.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant