Screeps-Typescript-Declarations
Screeps-Typescript-Declarations copied to clipboard
The repository for *Screeps's* TypeScript type definitions.
Reference: #21 Note that this does not close that issue just yet, but this is one small step to finally get the type declarations publishable onto [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped). Once this PR...
This is an updated version of #107 with just the minimal changes. Once this PR is in, it'll be very easy to extend your object's memory in your own `index.d.ts`...
From the documentation: ``` points | array | An array of points. Every item should be either an array with 2 numbers (i.e. [10,15]), or a RoomPosition object. ```
I found a helpful project to help us using RoomVisual in github, which is trying to extend the RoomVisual by changing its prototype: https://github.com/screepers/RoomVisual. To make the project work for...
Wouldn't it make more sense to have the screeps.d.ts generated with 'Interfaces' instead of 'declare class'? This repo isn't providing any implementation, its more used as a type system. See...
Docs: http://docs.screeps.com/api/#Constants STRUCTURE_WALL: "constructedWall",
http://docs.screeps.com/api/#RoomVisual.constructor The roomName is optional in the constructor per the API but it is not in the declarations file
I recently imported screeps.d.ts and noticed that there were a few issues related to literal values assigned to game constants. Previously they were declared like this: ``` declare const SOURCE_ENERGY_CAPACITY:...
http://docs.screeps.com/api/#Room.createFlag http://docs.screeps.com/api/#RoomPosition.createFlag Just add `| string` and we good.