When working with Tiled maps, it can be useful to have property defined types in Typescript.
This package contains a set of interfaces that map the Tiled map JSON format.
Moreover, this package comes with Zod type guards that will allow you to actually check that the JSON file ou are reading is actually a well-formed Tiled map.
// This will throw an error if "data" is not matching the type ITiledMap const map: ITiledMap = ITiledMap.parse(data);
Typescript package boilerplate template
The npm package @workadventure/tiled-map-type-guard receives a total of 516 weekly downloads. As such, @workadventure/tiled-map-type-guard popularity was classified as not popular.
We found that @workadventure/tiled-map-type-guard demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.