fix(utils): rename Error type to ErrorState to avoid global shadowing

This commit is contained in:
Uglyboy 2026-04-30 09:02:46 +08:00
parent f9742800c3
commit 186b2fa762

View file

@ -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<Error>((set) => ({
const useError = create<ErrorState>((set) => ({
error: null,
errorHandler: (message) => {
console.error(message);