From 947edf52c8bc398c5940ffa0bfe7677fffa0ebcf Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 6 Mar 2026 13:59:37 +0100 Subject: [PATCH] Remove redundant type argument --- client/client.ts | 6 ++---- client/data/object_index.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/client/client.ts b/client/client.ts index 0dd02f8c..5f1ede48 100644 --- a/client/client.ts +++ b/client/client.ts @@ -509,9 +509,7 @@ export class Client { resolve(); // In the background we'll fetch any enriched meta data, if any - const enrichedMeta = await this.objectIndex.getObjectByRef< - PageMeta - >( + const enrichedMeta = await this.objectIndex.getObjectByRef( this.currentName(), "page", this.currentName(), @@ -1122,7 +1120,7 @@ export class Client { // decorations if (await this.objectIndex.hasFullIndexCompleted()) { try { - const enrichedMeta = await this.objectIndex.getObjectByRef( + const enrichedMeta = await this.objectIndex.getObjectByRef( pageName, "page", pageName, diff --git a/client/data/object_index.ts b/client/data/object_index.ts index 00398a30..9cac8005 100644 --- a/client/data/object_index.ts +++ b/client/data/object_index.ts @@ -130,7 +130,7 @@ export class ObjectIndex { }; } - getObjectByRef<_T>(page: string, tag: string, ref: string) { + getObjectByRef(page: string, tag: string, ref: string) { return this.ds.get([indexKey, tag, this.cleanKey(ref, page), page]); }