Skip to content

Commit cf7811c

Browse files
committed
fix(metrics): linting test
1 parent 58fccc9 commit cf7811c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/transports/multiplexed.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getEnvelopeEndpointWithUrlEncodedAuth } from '../api';
22
import { DEBUG_BUILD } from '../debug-build';
3-
import type { Envelope, EnvelopeItemType, EventItem } from '../types-hoist/envelope';
3+
import type { Envelope, EnvelopeItemType, EventItem, MetricContainerItem } from '../types-hoist/envelope';
44
import type { Event } from '../types-hoist/event';
55
import type { SerializedMetric, SerializedMetricContainer } from '../types-hoist/metric';
66
import type { BaseTransportOptions, Transport, TransportMakeRequestResponse } from '../types-hoist/transport';
@@ -155,7 +155,7 @@ function makeOverrideReleaseTransport<TO extends BaseTransportOptions>(
155155
function overrideDsn(envelope: Envelope, dsn: string): Envelope {
156156
const clonedItems = envelope[1].map(item => {
157157
if (Array.isArray(item) && item[0]?.type === 'trace_metric') {
158-
const [header, container] = item as [any, SerializedMetricContainer];
158+
const [header, container] = item as MetricContainerItem;
159159
return [
160160
{ ...header },
161161
{

0 commit comments

Comments
 (0)