Skip to content

Commit

Permalink
fix(types): make eventName required (#275)
Browse files Browse the repository at this point in the history
* fix(types): add eventName to InsightsSearchConversionEvent

* fix: make eventName required
  • Loading branch information
Eunjae Lee authored Jul 26, 2021
1 parent 9151c36 commit 04ad058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_sendEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type InsightsEventType = "click" | "conversion" | "view";
export type InsightsEvent = {
eventType: InsightsEventType;

eventName?: string;
eventName: string;
userToken: string;
timestamp?: number;
index: string;
Expand Down
1 change: 1 addition & 0 deletions lib/conversion.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { InsightsEvent } from "./_sendEvent";

export interface InsightsSearchConversionEvent {
eventName: string;
userToken?: string;
timestamp?: number;
index: string;
Expand Down

0 comments on commit 04ad058

Please sign in to comment.