UNPKG

react-achievements-zustand

Version:

This package allows users to transpose a React achievements engine over their React apps using Zustand for state management

9 lines (8 loc) 441 B
export declare const useAchievement: () => { metrics: import("..").AchievementMetrics; unlockedAchievements: string[]; notifications: import("..").AchievementDetails[]; config: import("../types").SerializedAchievementConfiguration; updateMetrics: (newMetrics: import("..").AchievementMetrics | ((prevMetrics: import("..").AchievementMetrics) => import("..").AchievementMetrics)) => void; resetStorage: () => void; };