From c8582e8260bbc9f2bb1889b92beb6ff88cee7c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Naz=C4=B1m=20Can=20Alt=C4=B1nova?= Date: Mon, 25 Aug 2025 20:23:43 +0200 Subject: [PATCH] Fix a type case inconsistency --- src/profile-logic/profile-data.ts | 4 ++-- src/types/profile.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/profile-logic/profile-data.ts b/src/profile-logic/profile-data.ts index 1d3fef2b3e..db9a3fbbe7 100644 --- a/src/profile-logic/profile-data.ts +++ b/src/profile-logic/profile-data.ts @@ -85,7 +85,7 @@ import type { CallTreeSummaryStrategy, EventDelayInfo, ThreadsKey, - resourceTypeEnum, + ResourceTypeEnum, MarkerPayload, Address, AddressProof, @@ -2822,7 +2822,7 @@ export function getThreadProcessDetails( function _shouldShowBothOriginAndFileName( fileName: string, origin: string, - resourceType: resourceTypeEnum | null + resourceType: ResourceTypeEnum | null ): boolean { // If the origin string is just a URL prefix that's part of the // filename, it doesn't add any useful information, so only show diff --git a/src/types/profile.ts b/src/types/profile.ts index 23503ce928..645b21779e 100644 --- a/src/types/profile.ts +++ b/src/types/profile.ts @@ -17,7 +17,7 @@ export type IndexIntoLibs = number; export type IndexIntoNativeSymbolTable = number; export type IndexIntoCategoryList = number; export type IndexIntoSubcategoryListForCategory = number; -export type resourceTypeEnum = number; +export type ResourceTypeEnum = number; export type ThreadIndex = number; // The Tid is most often a number. However in some cases such as merged profiles // we could generate a string. @@ -370,7 +370,7 @@ export type ResourceTable = { lib: Array; name: Array; host: Array; - type: resourceTypeEnum[]; + type: ResourceTypeEnum[]; }; /**