Screeps-Typescript-Declarations icon indicating copy to clipboard operation
Screeps-Typescript-Declarations copied to clipboard

The repository for *Screeps's* TypeScript type definitions.

Results 20 Screeps-Typescript-Declarations issues
Sort by recently updated
recently updated
newest added

Since we have an interface for objects that have an storage, we should use it instead of any. Also, the energy-property always is available, see official doc on Terminals/Containers/Storage. One...

As it says in the docs (http://docs.screeps.com/api/#StructureStorage.store) energy is always defined so does not need to be an optional property.

Improves the type definitions for the output of `Game.map.describeExits()` - Sets the index type to string - Sets the properties to readonly

The previous declaration was not extensible, meaning we couldn't type our own memory. This abstracts Creep, Flag, Room, and Memory into empty interfaces that can then be extended by the...

It seems that currently, you can't apply an interface to members of the built-in Memory objects (such as `Memory.creeps`) because they're defined in index.d.ts as `any`. I'd like to propose...

In screeps, there's an object `global` which can be used to store values globally (i.e. for use from the console). It should be as simple as adding a `declare var...

Despite what the documentation [says](http://support.screeps.com/hc/en-us/articles/203079201-RoomPosition#inRangeTo), the method inRangeTo can accept any object that has a property pos with properties x, y and roomName as first parameter. It doesn't even have...

With some uses of literal types, we can allow body part typings to accurately reflect their values while not affecting backward compatibility with those who are using the existing typings:...

This would provide a much easier way to use definitions, including IDEs like WebStorm. http://definitelytyped.org/guides/contributing.html

Think it should be declared as a string for named array, compiler was balking til I changed it. ``` interface LookAtResultMatrix { [coord: string]: LookAtResultMatrix|LookAtResult[] } ```