Skip to content

Commit 0f16b43

Browse files
authored
🤖 Merge PR DefinitelyTyped#71099 fix(newrelic): correct recordCustomEvent return type by @atkinchris
1 parent 22f7071 commit 0f16b43

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎types/newrelic/index.d.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,10 @@ export function incrementMetric(name: string, value?: number): void;
326326
* `eventType` must be an alphanumeric string less than 255 characters.
327327
* The keys of `attributes` must be shorter than 255 characters.
328328
*/
329-
export function recordCustomEvent(eventType: string, attributes: { [keys: string]: boolean | number | string }): void;
329+
export function recordCustomEvent(
330+
eventType: string,
331+
attributes: { [keys: string]: boolean | number | string },
332+
): undefined | false;
330333

331334
/**
332335
* Registers an instrumentation function.

0 commit comments

Comments
 (0)