Better Typing for Positions and Formats Code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user