Skip to content

Commit

Permalink
added Prettify utility type
Browse files Browse the repository at this point in the history
  • Loading branch information
enguerranws committed Jun 14, 2023
1 parent 4d6788e commit 625fc02
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shared/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,9 @@ export const calculateDurationInSecondsFrom = (start: Date): number => {
const end = new Date();
return (end.getTime() - start.getTime()) / 1000;
};

export type Prettify<T> = {
[K in keyof T]: T[K];
} & {
//
};

0 comments on commit 625fc02

Please sign in to comment.