Function assertUUID

Asserts that a given string is a valid UUID. Throws an error if the validation fails.

If the provided string is not a valid UUID.

  • Parameters

    • uuid: string

      The UUID string to validate.

    Returns asserts uuid is string