Skip to content

Commit 8d8d7c7

Browse files
committed
Correct createConstructionSite structureType params
1 parent b8bd8e6 commit 8d8d7c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5109,7 +5109,7 @@ interface Room {
51095109
* - ERR_INVALID_ARGS: The location is incorrect.
51105110
* - ERR_RCL_NOT_ENOUGH: Room Controller Level insufficient.
51115111
*/
5112-
createConstructionSite(pos: RoomPosition | _HasRoomPosition, structureType: StructureConstant): ScreepsReturnCode;
5112+
createConstructionSite(pos: RoomPosition | _HasRoomPosition, structureType: BuildableStructureConstant): ScreepsReturnCode;
51135113
/**
51145114
* Create new {@link ConstructionSite} at the specified location.
51155115
* @param x The X position

src/room.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ interface Room {
7878
* - ERR_INVALID_ARGS: The location is incorrect.
7979
* - ERR_RCL_NOT_ENOUGH: Room Controller Level insufficient.
8080
*/
81-
createConstructionSite(pos: RoomPosition | _HasRoomPosition, structureType: StructureConstant): ScreepsReturnCode;
81+
createConstructionSite(pos: RoomPosition | _HasRoomPosition, structureType: BuildableStructureConstant): ScreepsReturnCode;
8282
/**
8383
* Create new {@link ConstructionSite} at the specified location.
8484
* @param x The X position

0 commit comments

Comments
 (0)