interface CreepMemory { role: string, working?: boolean, source?:string, workTarget?: Id, [property: string]: any, } interface MemoryStructure{ id: Id, structureType: string, roomName: string creep?: Id, } interface Memory{ structures?: MemoryStructure[] } declare type Part = WORK | MOVE | CARRY | HEAL | ATTACK | RANGED_ATTACK | TOUGH | CLAIM;