diff --git a/types/screeps/index.d.ts b/types/screeps/index.d.ts index 4b8f0f76f6..145c240b39 100644 --- a/types/screeps/index.d.ts +++ b/types/screeps/index.d.ts @@ -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 // Nhan Ho @@ -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 { /** * 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 { /** * 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. */ diff --git a/types/screeps/tsconfig.json b/types/screeps/tsconfig.json index 95f515e31c..0e153958c2 100644 --- a/types/screeps/tsconfig.json +++ b/types/screeps/tsconfig.json @@ -20,5 +20,4 @@ "index.d.ts", "screeps-tests.ts" ] -} - \ No newline at end of file + } diff --git a/types/screeps/tslint.json b/types/screeps/tslint.json index a94a85698c..f3ea5020c6 100644 --- a/types/screeps/tslint.json +++ b/types/screeps/tslint.json @@ -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 + } }