Skip to content

Validates a state transition (old to new) for the timeline, given the current permissions that are set.

validateIsArchivedUpdate<T>(oldIsArchived, newIsArchived, canArchiveCollection): Error | null

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:737

Validates a state transition (old to new) for the timeline, given the current permissions that are set.

Type Parameters

T

T extends NumberType

Parameters

oldIsArchived

boolean

newIsArchived

boolean

canArchiveCollection

ActionPermission<T>[]

Returns

Error | null

Remarks

Can also be used via the corresponding wrapper function in BitBadgesCollection

Edit this page on GitHub