{"id":15494996,"url":"https://github.com/chnapy/tiled-types","last_synced_at":"2025-04-22T20:26:20.773Z","repository":{"id":36947883,"uuid":"233130299","full_name":"Chnapy/tiled-types","owner":"Chnapy","description":"Type definitions of Tiled generated JSON https://github.com/bjorn/tiled","archived":false,"fork":false,"pushed_at":"2022-12-10T14:30:37.000Z","size":207,"stargazers_count":17,"open_issues_count":6,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T11:15:37.568Z","etag":null,"topics":["tiled-map-editor","types","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Chnapy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-10T21:05:33.000Z","updated_at":"2023-10-13T21:16:54.000Z","dependencies_parsed_at":"2023-01-17T07:25:14.720Z","dependency_job_id":null,"html_url":"https://github.com/Chnapy/tiled-types","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chnapy%2Ftiled-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chnapy%2Ftiled-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chnapy%2Ftiled-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chnapy%2Ftiled-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chnapy","download_url":"https://codeload.github.com/Chnapy/tiled-types/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250317578,"owners_count":21410779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["tiled-map-editor","types","typescript"],"created_at":"2024-10-02T08:15:44.895Z","updated_at":"2025-04-22T20:26:20.727Z","avatar_url":"https://github.com/Chnapy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tiled-types\n\nType definitions of Tiled generated JSON https://github.com/bjorn/tiled.\n\n[![Build Status](https://travis-ci.com/Chnapy/tiled-types.svg?branch=master)](https://travis-ci.com/Chnapy/tiled-types)\n\nMade for Tiled 1.4.\n\nBased on its documentation https://doc.mapeditor.org/en/stable/reference/json-map-format.\n\n## Installation\n\n```\nnpm install tiled-types\n```\n\n## Use\n\n```typescript\nimport TiledMap, { TiledLayerTilelayer } from \"tiled-types\";\n\n// Assume we're in node context\nconst map: TiledMap = fs.readFileSync('path/to/schema.json', 'utf8');\n\nconst allTilelayers: TiledLayerTilelayer[] = map.layers\n    .filter((l): l is TiledLayerTilelayer =\u003e l.type === 'tilelayer');\n```\nYou can find quite the same example [here](types/tiled-tests.ts)\n\n## Credits\n\nThanks to [type-zoo](https://github.com/pelotom/type-zoo) for there repo configuration :+1:\n\nAnd to [Tiled contributors](https://github.com/bjorn/tiled/graphs/contributors) :100:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchnapy%2Ftiled-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchnapy%2Ftiled-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchnapy%2Ftiled-types/lists"}