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
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
(typeguardisTiledMap
)ITiledMapLayer
(typeguardisTiledMapLayer
)ITiledMapGroupLayer
(typeguardisTiledMapGroupLayer
)ITiledMapImageLayer
(typeguardisTiledMapImageLayer
)ITiledMapObjectLayer
(typeguardisTiledMapObjectLayer
)ITiledMapObject
(typeguardisTiledMapObject
)ITiledMapText
(typeguardisTiledMapText
)ITiledMapPoint
(typeguardisTiledMapPoint
)
ITiledMapTileLayer
(typeguardisTiledMapTileLayer
)
ITiledMapTileset
(typeguardisTiledMapTileset
)ITiledMapTile
(typeguardisTiledMapTile
)ITiledMapWangColor
(typeguardisTiledMapWangColor
)ITiledMapWangSet
(typeguardisTiledMapWangSet
)ITiledMapWangTile
(typeguardisTiledMapWangTile
)
ITiledMapChunk
(typeguardisTiledMapChunk
)ITiledMapFrame
(typeguardisTiledMapFrame
)ITiledMapGrid
(typeguardisTiledMapGrid
)ITiledMapOffset
(typeguardisTiledMapOffset
)ITiledMapProperty
(typeguardisTiledMapProperty
)ITiledMapTerrain
(typeguardisTiledMapTerrain
)ITiledMapTransformations
(typeguardisTiledMapTransformations
)