Skip to main content

AchievementContextValue

Defined in: src/core/types.ts:110

Deprecated

This type is outdated and will be removed in 5.0. Use AchievementContextType from 'react-achievements' instead.

This legacy interface does not include the 'engine' property.

Example

// Old (deprecated)
import { AchievementContextValue } from 'react-achievements';

// New (recommended)
import { AchievementContextType } from 'react-achievements';

Properties

resetStorage()

resetStorage: () => void

Defined in: src/core/types.ts:113

Returns

void


unlockedAchievements

unlockedAchievements: string[]

Defined in: src/core/types.ts:112


updateMetrics()

updateMetrics: (metrics) => void

Defined in: src/core/types.ts:111

Parameters

metrics

AchievementMetrics | (prev) => AchievementMetrics

Returns

void