From 01d4192f796f709d0b22472abfd09ac5aaacc4e7 Mon Sep 17 00:00:00 2001 From: DrJKL Date: Thu, 30 Apr 2026 14:06:07 -0700 Subject: [PATCH] chore: drop unused exports flagged by knip Amp-Thread-ID: https://ampcode.com/threads/T-019de014-4726-7527-a52a-766e2f2eaf22 Co-authored-by: Amp --- src/stores/widgetValueStore.ts | 4 +--- src/world/entityIds.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/stores/widgetValueStore.ts b/src/stores/widgetValueStore.ts index 8f8cda93e9..ebf43a7749 100644 --- a/src/stores/widgetValueStore.ts +++ b/src/stores/widgetValueStore.ts @@ -65,9 +65,7 @@ export type WidgetState< * `WidgetEntityId`. The view returned from `registerWidget` is the * un-augmented `WidgetState` because identity fields live in the entity id. */ -export interface WidgetRegistration< - TValue = unknown -> extends WidgetState { +interface WidgetRegistration extends WidgetState { name: string nodeId: NodeId } diff --git a/src/world/entityIds.ts b/src/world/entityIds.ts index f61229732e..841156a8e5 100644 --- a/src/world/entityIds.ts +++ b/src/world/entityIds.ts @@ -22,7 +22,7 @@ export function asGraphId(id: UUID): GraphId { export type NodeEntityId = Brand -export function graphNodePrefix(graphId: GraphId): string { +function graphNodePrefix(graphId: GraphId): string { return `node:${graphId}:` } @@ -32,7 +32,7 @@ export function nodeEntityId(graphId: GraphId, nodeId: NodeId): NodeEntityId { export type WidgetEntityId = Brand -export function graphWidgetPrefix(graphId: GraphId): string { +function graphWidgetPrefix(graphId: GraphId): string { return `widget:${graphId}:` }