mirror of
https://github.com/uglyboy-tl/obsidian-ink-player.git
synced 2026-07-22 05:42:02 +00:00
fix(utils): rename Error type to ErrorState to avoid global shadowing
This commit is contained in:
parent
f9742800c3
commit
186b2fa762
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue