0.3.1 • Published 9 months ago

lua-to-typescript v0.3.1

Weekly downloads
8
License
MIT
Repository
github
Last release
9 months ago

Transpiles Lua to TypeScript declaration and/or TypeScript source code.

npm install -g lua-to-typescript

To transpile files...

ltts main.lua
# Generates main.ts

ltts a.lua b.lua c.lua ...
# Generates a.ts, b.ts, c.ts, ...

ltts -d library.lua
# Generates library.d.ts

LDoc

This program uses LDoc type annotations for type information that is used in generated TypeScript code.

--- @tparam number a
--- @treturn number
local function f(a)
  return a
end

return a

Loosely translates to the below code. Note the type annotations.

function f(a: number): number {
  return a;
}

export = f;
0.3.0

9 months ago

0.3.1

9 months ago

0.2.2

3 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago