Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint: fix duplicate types
  • Loading branch information
logaretm committed Mar 10, 2026
commit b8f68dd210af1a07c653a4cc31a776538499c989
1 change: 0 additions & 1 deletion packages/browser-utils/src/metrics/browserMetrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,6 @@ type StartEventName =
| 'loadEvent';

type EndEventName =
| 'connectEnd'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m: Why did we remove connectEnd? It's a valid property for resource timing and we reference it below in the code. I suspect it's because this type isn't used there (?).

Copy link
Copy Markdown
Member Author

@logaretm logaretm Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shows up again in line 581, so its literally duplicated 😆 It's just outside the diff window

| 'domainLookupStart'
| 'domainLookupEnd'
| 'unloadEventEnd'
Expand Down
9 changes: 1 addition & 8 deletions packages/core/src/types-hoist/polymorphics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,13 @@ export interface PolymorphicEvent {
}

/** A `Request` type compatible with Node, Express, browser, etc., because everything is optional */
export type PolymorphicRequest = BaseRequest &
BrowserRequest &
NodeRequest &
ExpressRequest &
KoaRequest &
NextjsRequest;
export type PolymorphicRequest = BaseRequest & NodeRequest & ExpressRequest & KoaRequest & NextjsRequest;

type BaseRequest = {
method?: string;
url?: string;
};

type BrowserRequest = BaseRequest;

type NodeRequest = BaseRequest & {
headers?: {
[key: string]: string | string[] | undefined;
Expand Down
1 change: 1 addition & 0 deletions packages/svelte/test/components/Dummy.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import * as Sentry from '../../src/index';

// Pass options to trackComponent as props of this component
// oxlint-disable-next-line no-unassigned-vars
export let options;

Sentry.trackComponent(options);
Expand Down