-
I am currently using these types with TypeScriptToLua, they are so so helpful, thanks!
Would you, or have you considered naming `@types/wow-declarations`? It would require no `tsconfig.json` update…
-
```ts
/** @vararg */
interface Vararg extends Array {}
/* Transpiled:
function vararger(...)
end
*/
function vararger(...args: Vararg): void {}
/* Transpiled:
function hello(a, b, ...)
…
-
This is very much a suggestion/topic for discussion only..
Consider exporting this with the wow api version
i.e.
If we are on WoW api `8.2.0` then versions could be `8.2.0.1`, `8.2.0.13`, e…
-
```ts
console.log([].reduce(() => {}, undefined)); // should be undefined
```
[TypescriptToLua Playground](https://typescripttolua.github.io/play.html#src=console.log(%5B%5D.reduce(()%20%3D%3E%20…
-
The following code:
```ts
[0, 1, 2][2];
[].length;
"hello".length;
({ x: 0 }.x);
```
produces:
```lua
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
local __…
-
Hi, today i wrote something like this in TS:
```
declare function output(message: String): Boolean;
output("fdsa");
```
then i compiled this into:
```
--[[ Generated with https://github…
-
```ts
declare const arr: number[];
arr.push(1);
arr.unshift(2);
```
=>
```lua
-- Lua Library inline imports
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
function …
-
Me again! This might be a TypescriptToLua problem and not your problem but I figured I'd start here:
Scenario: I have a file `foo.ts` and another file `bar.ts` which have `export class Foo { .... }…
-
-
```ts
declare class Test {};
class TestChild extends Test {
}
```
```lua
TestChild = TestChild or {};
TestChild.__index = TestChild;
TestChild.prototype = TestChild.prototype or {};
…