appcues-loader
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

appcues-loader

Async loader for the Appcues JS API written in typescript with promises.

This package makes no changes to the functionality of the Appcues JS API, it merely provides an easy way to load it asynchronously and then execute calls against the API in a Typescript project.

Installation

$ npm install --save appcues-loader

Usage

import { Appcues, Loader } from 'appcues-loader';

const loader = new Loader(yourAccountId);
loader.load().then((appcues: Appcues) => {
  appcues.page();
  appcues.identify(userId, { user: 'properties' });
});

The API only supports the push call, which is documented here.

Package Sidebar

Install

npm i appcues-loader

Weekly Downloads

304

Version

0.0.1

License

MIT

Unpacked Size

9.66 kB

Total Files

18

Last publish

Collaborators

  • aubreyholland