X Tutup
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions language-extensions/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -663,3 +663,14 @@ declare const LuaSet: (new <T extends AnyNotNil = AnyNotNil>() => LuaSet<T>) & L
declare interface LuaReadonlySet<T extends AnyNotNil = AnyNotNil> extends LuaPairsKeyIterable<T> {
has: LuaTableHasMethod<T>;
}

interface ObjectConstructor {
/** Returns an array of keys of an object, when iterated with `pairs`. */
keys<K>(o: LuaPairsIterable<K, any> | LuaPairsKeyIterable<K>): K[];

/** Returns an array of values of an object, when iterated with `pairs`. */
values<V>(o: LuaPairsIterable<any, V>): V[];

/** Returns an array of key/values of an object, when iterated with `pairs`. */
entries<K, V>(o: LuaPairsIterable<K, V>): Array<[K, V]>;
}
X Tutup