@consumidor-positivo/ts-utils - v1.21.0
    Preparing search index...

    Function openFileBlobInTab

    • Opens a file blob in a new tab.

      Parameters

      • blob: Blob

        The blob representing the file content.

      • timeRevokeUrl: number = 25000

        Time in milliseconds to revoke the file URL (default: 25000ms)

      Returns void

      const blob = new Blob([data], { type: 'application/pdf' });
      openFileBlobInTab(blob);