Better Typing for Positions and Formats Code

This commit is contained in:
2025-07-14 23:07:44 -03:00
parent 230153403f
commit 952d274c53
14 changed files with 235 additions and 182 deletions

View File

@@ -11,8 +11,7 @@ export const getSourceById = (sourceId: string): Source | null => {
}
return source;
}
};
export const getSpawnById = (spawnId: string): StructureSpawn | null => {
if (!spawnId) {
@@ -27,8 +26,7 @@ export const getSpawnById = (spawnId: string): StructureSpawn | null => {
}
return spawn;
}
};
export const getControllerById = (controllerId: string): StructureController | null => {
if (!controllerId) {
@@ -43,4 +41,4 @@ export const getControllerById = (controllerId: string): StructureController | n
}
return controller;
}
};