mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
Fix addPageAction type
This commit is contained in:
Vendored
+1
-1
@@ -25,7 +25,7 @@ declare namespace NewRelic {
|
||||
* The key will report to Insights as its own PageAction attribute with the specified values.
|
||||
* @see https://docs.newrelic.com/docs/browser/new-relic-browser/browser-agent-spa-api/addPageAction
|
||||
*/
|
||||
addPageAction(name: string, attributes: { [key: string]: string }): void;
|
||||
addPageAction(name: string, attributes: { [key: string]: string | number }): void;
|
||||
|
||||
/**
|
||||
* Adds a JavaScript object with a custom name, start time, etc. to an in-progress session trace.
|
||||
|
||||
@@ -9,6 +9,7 @@ newrelic.addRelease('checkout page', 'a818994');
|
||||
|
||||
// addPageAction()
|
||||
newrelic.addPageAction('copy-text-button', { result: 'success' });
|
||||
newrelic.addPageAction('async-action', { duration: 3000 });
|
||||
|
||||
// addToTrace()
|
||||
newrelic.addToTrace({
|
||||
|
||||
Reference in New Issue
Block a user