Skip to content

Commit

Permalink
chore: types
Browse files Browse the repository at this point in the history
  • Loading branch information
ijkml committed Mar 4, 2024
1 parent 2d1872d commit 0389df0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface EventData {
[key: string]: string | number | boolean;
}

type EventPayloadPartial =
type EventDetails =
{
name: string;
data?: EventData;
Expand All @@ -21,8 +21,8 @@ type EventPayloadPartial =
event_data?: EventData;
};

type EventPayload = BasicPayload & EventPayloadPartial;
type ViewPayload = BasicPayload;
type EventPayload = BasicPayload & EventDetails;
type ViewPayload = BasicPayload;

type PartialPayload = Omit<BasicPayload, 'website'>;
type PayloadType = 'pageview' | 'event';
Expand Down

0 comments on commit 0389df0

Please # to comment.