From 186b2fa762c5b6fc7e72624db29cb9c41fb3dcce Mon Sep 17 00:00:00 2001 From: Uglyboy <25730357+uglyboy-tl@users.noreply.github.com> Date: Thu, 30 Apr 2026 09:02:46 +0800 Subject: [PATCH] fix(utils): rename Error type to ErrorState to avoid global shadowing --- src/utils/error.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/error.ts b/src/utils/error.ts index f60054b..cda615a 100644 --- a/src/utils/error.ts +++ b/src/utils/error.ts @@ -2,12 +2,12 @@ import { createSelectors } from "@inkweave/core"; import { Notice } from "obsidian"; import { create } from "zustand"; -type Error = { +type ErrorState = { error: string | null; errorHandler: (message: string) => void; }; -const useError = create((set) => ({ +const useError = create((set) => ({ error: null, errorHandler: (message) => { console.error(message);