@deephaven/jsapi-shim
TypeScript icon, indicating that this package has built-in type declarations

0.108.0 • Public • Published

@deephaven/jsapi-shim

A shim library that is used to import the global dh object as a module, and provide some useful PropTypes.

Install

npm install --save @deephaven/jsapi-shim

Usage

import dh, { PropTypes as APIPropTypes } from '@deephaven/jsapi-shim'

class MyComponent {
  componentDidMount() {
    const { session } = this.props;
    session.addEventListener(
      dh.IdeSession.EVENT_COMMANDSTARTED,
      event => {
        console.log('Command started event', event);
      }
    );
  }

  render() {
    return null;
  }
}

MyComponent.proptypes = {
  session: APIPropTypes.IdeSession.isRequired,
}

export default MyComponent;

/@deephaven/jsapi-shim/

    Package Sidebar

    Install

    npm i @deephaven/jsapi-shim

    Weekly Downloads

    829

    Version

    0.108.0

    License

    Apache-2.0

    Unpacked Size

    29.1 kB

    Total Files

    15

    Last publish

    Collaborators

    • vbabich
    • mofojed
    • mikebender
    • niloc132
    • nbauernfeind
    • jnumainville
    • deephaven-bot
    • bingles