{"id":15722569,"url":"https://github.com/thinknathan/tsd-xmath-types","last_synced_at":"2025-10-14T19:30:55.076Z","repository":{"id":180826429,"uuid":"659019475","full_name":"thinknathan/tsd-xmath-types","owner":"thinknathan","description":"Types for @thejustinwalsh's xmath, a Defold Math eXtention Library that avoids allocations","archived":true,"fork":false,"pushed_at":"2024-01-06T01:48:17.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T11:35:55.972Z","etag":null,"topics":["defold","defold-game-engine","gamedev","tstl","typescript","typescript-definitions","typescript-to-lua"],"latest_commit_sha":null,"homepage":"","language":null,"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/thinknathan.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-06-27T01:47:56.000Z","updated_at":"2024-01-22T18:16:20.000Z","dependencies_parsed_at":"2023-12-12T21:24:23.674Z","dependency_job_id":"6ee00f0c-043b-49b6-b9d5-eab087cb8abd","html_url":"https://github.com/thinknathan/tsd-xmath-types","commit_stats":null,"previous_names":["thinknathan/tsd-xmath-types"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/thinknathan/tsd-xmath-types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Ftsd-xmath-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Ftsd-xmath-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Ftsd-xmath-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Ftsd-xmath-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinknathan","download_url":"https://codeload.github.com/thinknathan/tsd-xmath-types/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Ftsd-xmath-types/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020650,"owners_count":26086898,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["defold","defold-game-engine","gamedev","tstl","typescript","typescript-definitions","typescript-to-lua"],"created_at":"2024-10-03T22:08:25.613Z","updated_at":"2025-10-14T19:30:54.817Z","avatar_url":"https://github.com/thinknathan.png","language":null,"readme":"\u003cimg src=\"_docs/xmath-types.png\" alt=\"xMath Types\"\u003e\n\n# @types/tsd-xmath\n\n\u003ca href=\"https://discord.gg/eukcq5m\"\u003e\u003cimg alt=\"Chat with us!\" src=\"https://img.shields.io/discord/766898804896038942.svg?colorB=7581dc\u0026logo=discord\u0026logoColor=white\"\u003e\u003c/a\u003e\n\nTypeScript types for thejustinwalsh's [defold-xmath](https://github.com/thejustinwalsh/defold-xmath), a Defold Math eXtention Library that avoids allocations.\n\nFor use with [TS-Defold](https://github.com/ts-defold) and [TypeScriptToLua](https://github.com/TypeScriptToLua).\n\nThe documentation comments are copied from Defold's vmath library with some modifications; they may not be 100% accurate to xmath's implementation.\n\n## Installation\n\n1. Create a [TS-Defold](https://github.com/ts-defold) project\n2. Add [defold-xmath](https://github.com/thejustinwalsh/defold-xmath) to your Defold project\n3. Import these types\n\n```bash\nyarn add git+https://git@github.com/thinknathan/tsd-xmath-types.git#^1.0.0 -D\n# or\nnpm install git+https://git@github.com/thinknathan/tsd-xmath-types.git#^1.0.0 --save-dev\n```\n\n4. Add `tsd-xmath` to `types` in `tsconfig.json`\n\n```diff\n{\n\t\"compilerOptions\": {\n\t\t\"types\": [\n+\t\t\t\"tsd-xmath\",\n\t\t],\n\t}\n}\n```\n\n5. Add `node_modules/@types` to `typeRoots` in `tsconfig.json` if it's not already there\n\n```diff\n{\n\t\"compilerOptions\": {\n\t\t\"typeRoots\": [\n+\t\t\t\"node_modules/@types\",\n\t\t],\n\t}\n}\n```\n\n\u003cp align=\"center\" class=\"h4\"\u003e\n  TypeScript :heart: Defold\n\u003c/p\u003e\n\n## License\n\nMIT\n\nComments are adapted from [Defold's](https://github.com/defold/) code comments.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinknathan%2Ftsd-xmath-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinknathan%2Ftsd-xmath-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinknathan%2Ftsd-xmath-types/lists"}