export const useSpecificHook = () => {
return useContext(OurContext);
};
export const useCustomProcessor = () => {
const [notes, setNotes] = useState([]);
const removeItems = () => {
setItems([]);
};
return {
clearNotes,
};
};
// When I attempt to utilize it, I encounter: Unsafe assignment of an `any` value.
const { removeItems } = useSpecificHook();
I am relatively new to TypeScript and unsure about how to tackle this issue.