From 20945e526c731386e14762fdfc7b36af0c323fe6 Mon Sep 17 00:00:00 2001 From: Tom Tang <4220945+shiba4life@users.noreply.github.com> Date: Wed, 13 May 2026 07:56:46 +0800 Subject: [PATCH] refactor(api/schema): unexport 3 internal response types SchemasByStateResponse, SchemasWithStateResponse, and SchemaStatusResponse are only used inside schemaClient.ts as return-type annotations on UnifiedSchemaClient methods. ts-unused-exports flagged them and grep across src confirms zero external references. Drop the `export` keyword on each; bodies, callers, and the exported function/class set are unchanged. Same pattern as #1024 / #1025. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/server/static-react/src/api/clients/schemaClient.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/static-react/src/api/clients/schemaClient.ts b/src/server/static-react/src/api/clients/schemaClient.ts index 24d335aa..affd5dd0 100644 --- a/src/server/static-react/src/api/clients/schemaClient.ts +++ b/src/server/static-react/src/api/clients/schemaClient.ts @@ -8,12 +8,12 @@ import type { Schema, SchemaState } from '../../types/schema'; import { normalizeSchemaState } from '../../utils/rangeSchemaHelpers.js'; // Schema-specific response types -export interface SchemasByStateResponse { +interface SchemasByStateResponse { data: string[]; state: string; } -export type SchemasWithStateResponse = Record; +type SchemasWithStateResponse = Record; const FALLBACK_SCHEMA_STATE = SCHEMA_STATES.AVAILABLE as SchemaState; const RECOGNIZED_SCHEMA_STATES: ReadonlySet = new Set([ @@ -62,7 +62,7 @@ function extractRawSchemaState(schema: unknown): unknown { return candidates.find((candidate) => candidate !== undefined); } -export interface SchemaStatusResponse { +interface SchemaStatusResponse { available: number; approved: number; blocked: number;