From 4b706a904000bd97a9b270c8609cf6c62565e436 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Tue, 1 Oct 2024 17:55:25 +0200 Subject: [PATCH] Remove type annotation --- js/src/table.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/table.ts b/js/src/table.ts index ea2c3350026c6..d9ee825f99bd8 100644 --- a/js/src/table.ts +++ b/js/src/table.ts @@ -238,7 +238,7 @@ export class Table { * * @returns An Array of Table rows. */ - public toArray(): Array['TValue']> { + public toArray() { return [...this]; } @@ -251,7 +251,7 @@ export class Table { * * @returns An Array proxy to the Table rows. */ - public toArrayView(): Array['TValue']> { + public toArrayView() { return new Proxy([] as Array['TValue']>, new TableArrayProxyHandler(this)); }