partey_workadventure/front/packages/iframe-api-typings
David Négrier 987325e787 Adding RXJS as a dependency in iframe-api-typings
Because some methods are returning Subjects, we need to import rxjs as a dependency of the package to have full typing available.
2022-03-25 17:38:01 +01:00
..
.gitignore build iframe-api-typings with tsc 2022-02-01 11:22:33 +01:00
.npmignore Added empty .npmignore to override .gitignore 2021-04-10 19:14:36 +02:00
iframe_api.js Creating a dedicated package for iframe API typings 2021-04-10 18:50:46 +02:00
package.json Adding RXJS as a dependency in iframe-api-typings 2022-03-25 17:38:01 +01:00
README.md Creating a dedicated package for iframe API typings 2021-04-10 18:50:46 +02:00

WorkAdventure - IFrame API typings for Typescript

This package contains Typescript typings for WorkAdventure's map scripting API


WorkAdventure comes with a scripting API. Using this API, you can add some intelligence to your map. You use this API by loading an external script directly from WorkAdventure (at https://play.workadventu.re/iframe_api.js), or this script is loaded for you if you are using the "script" property of a map.

This project contains Typescript typings for the WA object provided by this script.

Usage

This package is only useful if you are using Typescript to script your WorkAdventure maps.

Download & Installation

$ npm install @workadventure/iframe-api-typings

or

$ yarn add @workadventure/iframe-api-typings