File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -663,3 +663,14 @@ declare const LuaSet: (new <T extends AnyNotNil = AnyNotNil>() => LuaSet<T>) & L
663663declare interface ReadonlyLuaSet < T extends AnyNotNil = AnyNotNil > extends LuaPairsKeyIterable < T > {
664664 has : LuaTableHasMethod < T > ;
665665}
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+ }
You can’t perform that action at this time.
0 commit comments