JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3459
  • Score
    100M100P100Q139356F
  • License MIT

Typescript package boilerplate template

Package Exports

  • @workadventure/tiled-map-type-guard
  • @workadventure/tiled-map-type-guard/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@workadventure/tiled-map-type-guard) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Tiled map type guards

Github Actions codecov

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 type guards that will allow you to actually check that the JSON file ou are reading is actually a well-formed Tiled map.

Available interfaces:

  • ITiledMap (typeguard isTiledMap)
  • ITiledMapLayer (typeguard isTiledMapLayer)
    • ITiledMapGroupLayer (typeguard isTiledMapGroupLayer)
    • ITiledMapImageLayer (typeguard isTiledMapImageLayer)
    • ITiledMapObjectLayer (typeguard isTiledMapObjectLayer)
      • ITiledMapObject (typeguard isTiledMapObject)
        • ITiledMapText (typeguard isTiledMapText)
        • ITiledMapPoint (typeguard isTiledMapPoint)
    • ITiledMapTileLayer (typeguard isTiledMapTileLayer)
  • ITiledMapTileset (typeguard isTiledMapTileset)
    • ITiledMapTile (typeguard isTiledMapTile)
      • ITiledMapWangColor (typeguard isTiledMapWangColor)
      • ITiledMapWangSet (typeguard isTiledMapWangSet)
      • ITiledMapWangTile (typeguard isTiledMapWangTile)
  • ITiledMapChunk (typeguard isTiledMapChunk)
  • ITiledMapFrame (typeguard isTiledMapFrame)
  • ITiledMapGrid (typeguard isTiledMapGrid)
  • ITiledMapOffset (typeguard isTiledMapOffset)
  • ITiledMapProperty (typeguard isTiledMapProperty)
  • ITiledMapTerrain (typeguard isTiledMapTerrain)
  • ITiledMapTransformations (typeguard isTiledMapTransformations)