Skip to content

Commit

Permalink
Remove type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez committed Oct 1, 2024
1 parent 47f04ea commit 4b706a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class Table<T extends TypeMap = any> {
*
* @returns An Array of Table rows.
*/
public toArray(): Array<Struct<T>['TValue']> {
public toArray() {
return [...this];
}

Expand All @@ -251,7 +251,7 @@ export class Table<T extends TypeMap = any> {
*
* @returns An Array proxy to the Table rows.
*/
public toArrayView(): Array<Struct<T>['TValue']> {
public toArrayView() {
return new Proxy([] as Array<Struct<T>['TValue']>, new TableArrayProxyHandler(this));
}

Expand Down

0 comments on commit 4b706a9

Please sign in to comment.