[screeps] update to version 2.1.0

This commit is contained in:
Resi Respati
2017-12-22 12:36:37 +07:00
parent 2419274a40
commit 15eda67c8b
3 changed files with 15 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
// Type definitions for Screeps
// Type definitions for Screeps 2.1
// Project: https://github.com/screeps/screeps
// Definitions by: Marko Sulamägi <https://github.com/MarkoSulamagi>
// Nhan Ho <https://github.com/NhanHo>
@@ -1110,7 +1110,7 @@ interface Game {
notify(message: string, groupInterval?: number): undefined;
}
declare const Game: Game;
declare let Game: Game;
interface _HasRoomPosition {
pos: RoomPosition;
}
@@ -3259,7 +3259,7 @@ interface StructureController extends OwnedStructure<STRUCTURE_CONTROLLER> {
/**
* An object with the controller reservation info if present: username, ticksToEnd
*/
reservation: ReservationDefinition;
reservation: ReservationDefinition | undefined;
/**
* How many ticks of safe mode are remaining, or undefined.
*/
@@ -3275,7 +3275,7 @@ interface StructureController extends OwnedStructure<STRUCTURE_CONTROLLER> {
/**
* An object with the controller sign info if present
*/
sign: SignDefinition;
sign: SignDefinition | undefined;
/**
* The amount of game ticks when this controller will lose one level. This timer can be reset by using Creep.upgradeController.
*/

View File

@@ -20,5 +20,4 @@
"index.d.ts",
"screeps-tests.ts"
]
}
}

View File

@@ -1,12 +1,12 @@
{
"extends": "dtslint/dt.json",
"rules": {
"no-redundant-jsdoc-2": false,
"dt-header": false,
"no-empty-interface": false,
"no-unnecessary-generics": false,
"no-misused-new": false,
"no-any-union": false,
"no-redundant-undefined": false
}
"extends": "dtslint/dt.json",
"rules": {
"no-redundant-jsdoc-2": false,
"dt-header": false,
"no-empty-interface": false,
"no-unnecessary-generics": false,
"no-misused-new": false,
"no-any-union": false,
"no-redundant-undefined": false
}
}