Fix TypeScript errors blocking production build

- ArticleEditor: annotate map callback parameter as string
- ui.ts: prefix unused get parameter with _ to silence noUnusedLocals

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jure
2026-03-09 19:37:43 +01:00
parent 848b72630f
commit f04cce744e
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ export function ArticleEditor() {
content: content.trim(),
summary: summary.trim() || undefined,
image: image.trim() || undefined,
tags: tags.split(",").map((t) => t.trim()).filter(Boolean),
tags: tags.split(",").map((t: string) => t.trim()).filter(Boolean),
});
clearDraft();
setPublished(true);

View File

@@ -17,7 +17,7 @@ interface UIState {
toggleSidebar: () => void;
}
export const useUIStore = create<UIState>((set, get) => ({
export const useUIStore = create<UIState>((set, _get) => ({
currentView: "feed",
sidebarCollapsed: false,
selectedPubkey: null,