@atvise/types-webmi
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@atvise/types-webmi

Type definitions for webmi.js

Please note that these definitions are currently work in progress.

Installation

Run npm install --save-dev @atvise/types-webmi to install this package from npm.

Usage

In your script, that has access to window.webMI add a Tripple-Slash-Directive.

/// <reference types="@atvise/types-webmi" />

// At this point, TypeScript will know the `webMI` global and it's type.

// Fails, because `isPaused()` returns a boolean
const test = webMI.data.isPaused() + 3;

This package is part of the create-atvise-app project.

Refer to it's documentation for more information.

Readme

Keywords

none

Package Sidebar

Install

npm i @atvise/types-webmi

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

37.5 kB

Total Files

4

Last publish

Collaborators

  • lhechenberger