Skip to content

Commit

Permalink
feat: ✨ add detailedsatellite cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Feb 19, 2024
1 parent 8d15b97 commit 63aeb77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/objects/DetailedSatellite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export class DetailedSatellite extends Satellite {
span: string = '';
user: string = '';
source: string = '';
vmag?: number|null;
rcs?: number|null;
vmag: number|null;
rcs: number|null;
altId: string = '';
altName: string = '';

Expand Down Expand Up @@ -179,4 +179,8 @@ export class DetailedSatellite extends Satellite {
dryMass: this.dryMass,
};
}

clone(): DetailedSatellite {
return new DetailedSatellite(this);
}
}
4 changes: 2 additions & 2 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export interface DetailedSatelliteParams extends SatelliteParams {
shape?: string;
span?: string;
user?: string;
vmag?: number;
rcs?: number;
vmag?: number | null;
rcs?: number | null;
source?: string;
altId?: string;
altName?: string;
Expand Down

0 comments on commit 63aeb77

Please sign in to comment.