Skip to content

Commit

Permalink
Merge pull request #27 from ouuan/event-props-number-boolean
Browse files Browse the repository at this point in the history
fix(request): accept number and boolean as event props
  • Loading branch information
ukutaht authored Apr 4, 2022
2 parents 66e4e6c + d6461f9 commit 0369c0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type EventOptions = {
/**
* Properties to be bound to the event.
*/
readonly props?: { readonly [propName: string]: string };
readonly props?: { readonly [propName: string]: string | number | boolean };
};

/**
Expand Down
2 changes: 2 additions & 0 deletions src/lib/tracker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ describe('tracker', () => {
props: {
variation1: 'A',
variation2: 'B',
variation3: 1,
variation4: true,
},
});

Expand Down

0 comments on commit 0369c0e

Please sign in to comment.