Skip to content

Commit

Permalink
refactor: ♻️ use defined interface when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 9, 2024
1 parent bcc93bc commit c2b7224
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/viewer/SatelliteStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ class SatelliteStore {
tleUrl = `${config.baseUrl}/data/attributed-TLE.json`;
eventManager: EventManager;
satData: SatelliteObject[] = [];
attribution?: Record<string, any>;
attribution?: {
name: string;
url: string;
};
updateDate?: Date;
satelliteVelocities: Float32Array = new Float32Array();
satellitePositions: Float32Array = new Float32Array();
Expand Down Expand Up @@ -65,7 +68,10 @@ class SatelliteStore {
}
}

getAttribution (): Record<string, any> | undefined {
getAttribution (): {
name: string;
url: string;
} | undefined {
return this.attribution;
}

Expand Down

0 comments on commit c2b7224

Please sign in to comment.