Added lualib extensions · TypeScriptToLua/TypeScriptToLua@b4ea5e8 · GitHub
Skip to content

Commit b4ea5e8

Browse files
committed
Added lualib extensions
1 parent aa4fd66 commit b4ea5e8

4 files changed

Lines changed: 122 additions & 8 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions

‎dist/lualib/lib-typescript.d.ts‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
declare class Set<T> {
2+
constructor(other?: Set<T>);
3+
add(item: T): void;
4+
contains(item: T): boolean;
5+
remove(item: T): boolean;
6+
items(): T[];
7+
count(): number;
8+
9+
//forEach<U>((item: T) => U): U[];
10+
}
11+
12+
declare class Map<S,T> {
13+
constructor(other?: Map<S,T>);
14+
put(key: S, value: T): void;
15+
remove(key: S): boolean;
16+
get(key: S): T;
17+
containsKey(key: S): boolean;
18+
keys(): S[];
19+
values(): T[];
20+
items(): {key: S, value: T}[];
21+
count(): number;
22+
}

‎dist/lualib/typescript.lua‎

Lines changed: 99 additions & 0 deletions

‎dist/typescript.lua‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)