Skip to content

Commit

Permalink
fix(trackerEntryModel): switch from class to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Clm-Roig committed Mar 16, 2022
1 parent 283d02f commit f3d0d01
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/models/TrackerEntry.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
class TrackerEntry {
export default interface TrackerEntry {
date: string;
quantity: number;

constructor({ date, quantity }: TrackerEntry) {
this.date = date;
this.quantity = quantity;
}
}

export default TrackerEntry;

0 comments on commit f3d0d01

Please sign in to comment.