{"id":15529933,"url":"https://github.com/hazzard993/luatotypescript","last_synced_at":"2025-03-23T06:11:18.910Z","repository":{"id":45370609,"uuid":"195230686","full_name":"hazzard993/LuaToTypeScript","owner":"hazzard993","description":"Converts Lua code to TypeScript","archived":false,"fork":false,"pushed_at":"2024-09-19T04:37:44.000Z","size":452,"stargazers_count":63,"open_issues_count":6,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-12T22:29:47.402Z","etag":null,"topics":["lua","transpiler","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/hazzard993.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-04T11:39:58.000Z","updated_at":"2025-01-07T19:15:37.000Z","dependencies_parsed_at":"2024-10-02T11:20:31.974Z","dependency_job_id":null,"html_url":"https://github.com/hazzard993/LuaToTypeScript","commit_stats":{"total_commits":73,"total_committers":2,"mean_commits":36.5,"dds":0.0273972602739726,"last_synced_commit":"73018582fb05f3d3fba1d9a41a99aae766076997"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazzard993%2FLuaToTypeScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazzard993%2FLuaToTypeScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazzard993%2FLuaToTypeScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazzard993%2FLuaToTypeScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hazzard993","download_url":"https://codeload.github.com/hazzard993/LuaToTypeScript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245061393,"owners_count":20554563,"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":["lua","transpiler","typescript"],"created_at":"2024-10-02T11:20:29.885Z","updated_at":"2025-03-23T06:11:18.882Z","avatar_url":"https://github.com/hazzard993.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eLua To TypeScript\u003c/h1\u003e\n  \u003ca href=\"https://www.npmjs.com/package/lua-to-typescript\"\u003e\u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/lua-to-typescript.svg?style=for-the-badge\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\nTranspiles Lua to TypeScript declaration and/or TypeScript source code.\n\n```sh\nnpm install -g lua-to-typescript\n```\n\nTo transpile files...\n\n```sh\nltts main.lua\n# Generates main.ts\n\nltts a.lua b.lua c.lua ...\n# Generates a.ts, b.ts, c.ts, ...\n\nltts -d library.lua\n# Generates library.d.ts\n```\n\n## LDoc\n\nThis program uses [LDoc](https://stevedonovan.github.io/ldoc/) type annotations for type information that is used in generated TypeScript code.\n\n```lua\n--- @tparam number a\n--- @treturn number\nlocal function f(a)\n  return a\nend\n\nreturn a\n```\n\nLoosely translates to the below code. Note the type annotations.\n\n```ts\nfunction f(a: number): number {\n  return a;\n}\n\nexport = f;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazzard993%2Fluatotypescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazzard993%2Fluatotypescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazzard993%2Fluatotypescript/lists"}