Jason McKenzie

Results 9 comments of Jason McKenzie

Sounds good! I'll also note a change I intend to make to this repo's branching strategy that may be relevant for your program. I'll make the master branch contain definitions...

Sorry haven't really explored much into various animation libraries, but @maxiy01 has made [typings for anim8](https://github.com/maxiy01/tstl-anim8) You can also check out https://github.com/love2d-community/awesome-love2d#animation for a bunch of Lua libraries to help...

Is the goal to allow access to `_G` from TS code via either declaration or prevent it? Both examples now create the same result ([Playground](https://typescripttolua.github.io/play/#code/CYUwxgNghgTiAEBzCB7ARlC8DeAoeB8YKAdgM4Au8A+gOIBc8UJAngNy4C+uudAdADMUKeAF54AIgwwJHEAA8ADihhVs3IA))

How about an [import assertion](https://github.com/tc39/proposal-import-assertions)? These have been implemented in some JS libraries and the TypeScript 4.5 beta ```ts import * as mod from "./mod" assert { luaPath: "foo" };...

There is an `export =` syntax in TypeScript to allow modules to return plain values ```ts export = [1, 2, 3]; // this modules now returns [1, 2, 3], nothing...

To import some Lua code for a project, you'll need the `.lua` and maybe a handwritten `.d.ts` file. See [External Code (TypeScriptToLua docs)](https://typescripttolua.github.io/docs/external-code) for more. #### File structure Since the...

When writing this I saw LDoc's `@tparam` tag to dictate a parameter of a specific type. But in your case I think `@param` is being used the same way. I'd...

Oh and same thing for `@return`, the program is looking for `@treturn` at the moment, but since it could be one or the other, `getReturnType(node, availableTags)` could be created instead

Sounds like a good idea, I am taking a look at potential ways to unit test