Renamed to pendo-io-browser per tslint, other lint fixes

This commit is contained in:
Aaron Beall
2019-03-04 23:31:51 -05:00
parent 3f04dbeed9
commit ef25a11262
4 changed files with 10 additions and 9 deletions

View File

@@ -1,7 +1,8 @@
// Type definitions for Pendo.io Agent 2.16
// Type definitions for non-npm package Pendo.io Agent 2.16
// Project: https://www.pendo.io/
// Definitions by: Aaron Beall <https://github.com/aaronbeall>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
declare namespace pendo {
interface Identity {

View File

@@ -34,13 +34,13 @@ pendo.identify({
pendo.debugging.getEventCache();
pendo.events
.ready(function () {
.ready(() => {
// Do something once `pendo.isReady()` would return `true`
})
.guidesLoaded(function () {
.guidesLoaded(() => {
// Do something when Guides load
})
.guidesFailed(function () {
.guidesFailed(() => {
// Do something when Guides fail to load
});
@@ -49,7 +49,7 @@ pendo.initialize({
visitor: { id: "" },
account: { id: "" },
events: {
ready: function () {
ready() {
// Do something when pendo is initialized
}
}
@@ -63,15 +63,14 @@ pendo.track("User Registered", {
try {
throw new Error();
}
catch (error) {
} catch (error) {
pendo.track("JIRA-12345--error-tripped", {
message: error.message,
stack: error.stack
});
}
pendo.dom("").closest('._pendo-guide-next_')
pendo.dom("").closest('._pendo-guide-next_');
pendo.onGuideAdvanced();
pendo.onGuideAdvanced({ steps: 2 });

View File

@@ -1,5 +1,6 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
@@ -18,6 +19,6 @@
},
"files": [
"index.d.ts",
"pendo-io-agent-tests.ts"
"pendo-io-browser-tests.ts"
]
}