Skip to content

Commit

Permalink
chore: change the type property of Date, Datespan, Time and Timespan …
Browse files Browse the repository at this point in the history
…to object (#551)

This PR updates the type property of the Date, Datespan, Time and Timespan types (the WhenTypes) to
object which is what is returned by the latest version (v3) of the Nylas api
  • Loading branch information
hanut committed Apr 3, 2024
1 parent 79f2bb8 commit 12e9595
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/models/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export interface Time {
/**
* The type of 'when' object.
*/
type: WhenType.Time;
object: WhenType.Time;
}

/**
Expand Down Expand Up @@ -474,7 +474,7 @@ export interface Timespan {
/**
* The type of 'when' object.
*/
type: WhenType.Timespan;
object: WhenType.Timespan;
}

/**
Expand All @@ -490,7 +490,7 @@ export interface Date {
/**
* The type of 'when' object.
*/
type: WhenType.Date;
object: WhenType.Date;
}

/**
Expand All @@ -511,7 +511,7 @@ export interface Datespan {
/**
* The type of 'when' object.
*/
type: WhenType.Datespan;
object: WhenType.Datespan;
}

/**
Expand Down

0 comments on commit 12e9595

Please sign in to comment.