Commit Graph

5 Commits

Author SHA1 Message Date
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
Lukas Hass
7fbd4c85cb
build iframe-api-typings with tsc 2022-02-01 11:22:33 +01:00
David Négrier
728fd4779c Dynamically fetching correct version and generating declarations only for npm lib 2021-04-11 11:32:56 +02:00
David Négrier
0f7ac7ba8b Added empty .npmignore to override .gitignore 2021-04-10 19:14:36 +02:00
David Négrier
6acf0ff047 Creating a dedicated package for iframe API typings
If users are willing to use Typescript to develop scripts for maps, they will need typings for the `WA` object.
This commit creates a new package (@workadventure/iframe-api-typings) that contains only the `iframe_api.d.ts` file.

The file is generated from the build of the front and isolated in this package.
This is necessary because the iframe_api.js file is supposed to always be loaded from WorkAdventure directly (and there is no @workadventure/iframe-api package and there will never be one)
2021-04-10 18:50:46 +02:00