From 7d8f850ba55d79cbe83adb7c66571c014f91a593 Mon Sep 17 00:00:00 2001 From: Jonas Holst Damtoft Date: Fri, 29 Sep 2023 14:20:11 +0200 Subject: [PATCH] refactor: rename Brand to AttachRole --- dist/screeps-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/screeps-tests.ts b/dist/screeps-tests.ts index 71cbd93..d5a450e 100644 --- a/dist/screeps-tests.ts +++ b/dist/screeps-tests.ts @@ -19,7 +19,7 @@ const body: BodyPartConstant[] = [WORK, WORK, CARRY, MOVE]; // Sample inputs for Game.map.findRoute testing const anotherRoomName: Room = Game.rooms.W10S11; -type Brand>> = { role: T } & O; +type AttachRole>> = { role: T } & O; interface MinerMemory { sourceId: Id; @@ -33,7 +33,7 @@ interface CommonCreepMemory { lastHits: number; } -type MyCreepMemory = CommonCreepMemory & (Brand<"miner", MinerMemory> | Brand<"upgrader", UpgraderMemory>); +type MyCreepMemory = CommonCreepMemory & (AttachRole<"miner", MinerMemory> | AttachRole<"upgrader", UpgraderMemory>); // Sample memory extensions interface Memory {