Skip to content

Commit

Permalink
this special string type was causing problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinta365 committed Sep 4, 2023
1 parent 96faa38 commit e271c6a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/types/oura.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@
* @author Pinta <https://github.com/Pinta365>
* @license MIT
*/
type oneToNine = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
type zeroToNine = 0 | oneToNine;
type YYYY = `19${zeroToNine}${zeroToNine}` | `20${zeroToNine}${zeroToNine}`;
type MM = `0${oneToNine}` | `1${0 | 1 | 2}`;
type DD = `${0}${oneToNine}` | `${1 | 2}${zeroToNine}` | `3${0 | 1}`;

export type DateFormat = `${YYYY}-${MM}-${DD}`;
export type DateFormat = string;

export interface PersonalInfo {
id: string;
Expand Down

0 comments on commit e271c6a

Please sign in to comment.