Skip to content

Commit 2b01487

Browse files
committed
ref(core): Cleanup internal types
1 parent 9030f37 commit 2b01487

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"circularDepCheck": "lerna run circularDepCheck",
1616
"clean": "run-s clean:build clean:caches",
1717
"clean:build": "lerna run clean",
18-
"clean:caches": "yarn rimraf eslintcache .nxcache && yarn jest --clearCache",
18+
"clean:caches": "yarn rimraf eslintcache .nxcache .nx && yarn jest --clearCache",
1919
"clean:deps": "lerna clean --yes && rm -rf node_modules && yarn",
2020
"clean:tarballs": "rimraf {packages,dev-packages}/*/*.tgz",
2121
"clean:watchman": "watchman watch-del \".\"",

packages/browser-utils/src/metrics/inp.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,8 @@ function _trackINP(): () => void {
127127

128128
/**
129129
* Register a listener to cache route information for INP interactions.
130-
* TODO(v9): `latestRoute` no longer needs to be passed in and will be removed in v9.
131130
*/
132-
export function registerInpInteractionListener(_latestRoute?: unknown): void {
131+
export function registerInpInteractionListener(): void {
133132
const handleEntries = ({ entries }: { entries: PerformanceEntry[] }): void => {
134133
const activeSpan = getActiveSpan();
135134
const activeRootSpan = activeSpan && getRootSpan(activeSpan);

packages/browser/src/sdk.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,7 @@ export function init(browserOptions: BrowserOptions = {}): Client | undefined {
198198
* All properties the report dialog supports
199199
*/
200200
export interface ReportDialogOptions {
201-
// TODO(v9): Change this to [key: string]: unknkown;
202-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
203-
[key: string]: any;
201+
[key: string]: unknown;
204202
eventId?: string;
205203
dsn?: DsnLike;
206204
user?: {

packages/core/src/api.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ export function getEnvelopeEndpointWithUrlEncodedAuth(dsn: DsnComponents, tunnel
4747
export function getReportDialogEndpoint(
4848
dsnLike: DsnLike,
4949
dialogOptions: {
50-
// TODO(v9): Change this to [key: string]: unknown;
51-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
52-
[key: string]: any;
50+
[key: string]: unknown;
5351
user?: { name?: string; email?: string };
5452
},
5553
): string {

packages/core/src/types-hoist/wrappedfunction.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
*/
44
// eslint-disable-next-line @typescript-eslint/ban-types
55
export type WrappedFunction<T extends Function = Function> = T & {
6-
// TODO(v9): Remove this
7-
[key: string]: any;
86
__sentry_wrapped__?: WrappedFunction<T>;
97
__sentry_original__?: T;
108
};

0 commit comments

Comments
 (0)