typescript-to-lua 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -630,7 +630,7 @@ declare const LuaMap: (new <K extends AnyNotNil = AnyNotNil, V = any>() => LuaMa
630
630
  * @param K The type of the keys used to access the table.
631
631
  * @param V The type of the values stored in the table.
632
632
  */
633
- declare interface LuaReadonlyMap<K extends AnyNotNil = AnyNotNil, V = any> extends LuaPairsIterable<K, V> {
633
+ declare interface ReadonlyLuaMap<K extends AnyNotNil = AnyNotNil, V = any> extends LuaPairsIterable<K, V> {
634
634
  get: LuaTableGetMethod<K, V>;
635
635
  has: LuaTableHasMethod<K>;
636
636
  }
@@ -660,6 +660,17 @@ declare const LuaSet: (new <T extends AnyNotNil = AnyNotNil>() => LuaSet<T>) & L
660
660
  *
661
661
  * @param T The type of the keys used to access the table.
662
662
  */
663
- declare interface LuaReadonlySet<T extends AnyNotNil = AnyNotNil> extends LuaPairsKeyIterable<T> {
663
+ declare interface ReadonlyLuaSet<T extends AnyNotNil = AnyNotNil> extends LuaPairsKeyIterable<T> {
664
664
  has: LuaTableHasMethod<T>;
665
665
  }
666
+
667
+ interface ObjectConstructor {
668
+ /** Returns an array of keys of an object, when iterated with `pairs`. */
669
+ keys<K>(o: LuaPairsIterable<K, any> | LuaPairsKeyIterable<K>): K[];
670
+
671
+ /** Returns an array of values of an object, when iterated with `pairs`. */
672
+ values<V>(o: LuaPairsIterable<any, V>): V[];
673
+
674
+ /** Returns an array of key/values of an object, when iterated with `pairs`. */
675
+ entries<K, V>(o: LuaPairsIterable<K, V>): Array<[K, V]>;
676
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typescript-to-lua",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "A generic TypeScript to Lua transpiler. Write your code in TypeScript and publish Lua!",
5
5
  "repository": "https://github.com/TypeScriptToLua/TypeScriptToLua",
6
6
  "homepage": "https://typescripttolua.github.io/",