@burand/WorkflowWorkflowUtilitáriosUtilitários
  • @burand/workflow
  • Introdução
  • Changelog
    • ApiError
    • AppError
    • DocumentNotFoundError
    • FirebaseAbstract
    • Model
    • ofFirestore
    • serverTimestamp
    • toFirestore
    • toNativeTypes
    • increment
    • decrement
    • createServer
    • ensureAuthentication
    • globalErrors
    • internalErrors
    • repoTypes
    • abbreviateLastName
    • calculateAge
    • removeAccents
    • removeNonDigits
    • toCents
    • toCurrency
  • Mais
  • Cloud Functions ↗ (opens in a new tab)
  • Got ↗ (opens in a new tab)
  • Zod ↗ (opens in a new tab)
    • @burand/workflows
    • index-2
docs
functions
utils
calculateAge
/**
 * Calcula a idade a partir da data de nascimento.
 *
 * @param birthDate - Data de nascimento.
 * @returns Idade em anos.
 */
function calculateAge(birthDate: Date): number;
abbreviateLastNameremoveAccents