Pular para o conteúdo principal

resolveMuteExpiry

@raizfc/contracts


@raizfc/contracts / resolveMuteExpiry

Function: resolveMuteExpiry()

resolveMuteExpiry(duration, nowIso): string | undefined

Defined in: engagement/feed-preferences.dto.ts:19

Pure — never reads the clock itself, so mocks and the real backend produce the exact same expiresAt for the same (duration, nowIso) pair. Returns undefined for 'forever'.

Parameters​

duration​

MuteDuration

nowIso​

string

Returns​

string | undefined