mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-08 19:20:05 +00:00
Renamed to pendo-io-browser per tslint, other lint fixes
This commit is contained in:
@@ -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 {
|
||||
@@ -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 });
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user