Skip to content

Commit a6e9e49

Browse files
aram-yesildenize556778
andauthored
🤖 Merge PR DefinitelyTyped#71281 chore: update types for ineum reportEvent by @aram-yesildeniz
Co-authored-by: e556778 <aram.yesildeniz@sbb.ch>
1 parent ddc56a4 commit a6e9e49

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎types/ineum/index.d.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ declare function ineum(
3939
): void;
4040
declare function ineum(
4141
command: "reportEvent",
42-
name: string,
42+
eventName: string,
4343
opts?: {
4444
duration?: number | undefined;
4545
timestamp?: number | undefined;
@@ -49,6 +49,7 @@ declare function ineum(
4949
meta?: {
5050
[key: string]: string | number | boolean;
5151
} | undefined;
52+
customMetric?: number | undefined;
5253
},
5354
): void;
5455

‎types/ineum/ineum-tests.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ ineum("reportEvent", "log", {
7474
meta: {
7575
itemsInCart: 5,
7676
},
77+
customMetric: 123.2342,
7778
});
7879

7980
// $ExpectType void

0 commit comments

Comments
 (0)