Fix addPageAction type

This commit is contained in:
Cleison Stein
2018-06-19 15:07:18 -03:00
parent ab65055b2f
commit de7dd93827
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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({