Skip to content

Commit c8582e8

Browse files
committed
Fix a type case inconsistency
1 parent 6444d1f commit c8582e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/profile-logic/profile-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ import type {
8585
CallTreeSummaryStrategy,
8686
EventDelayInfo,
8787
ThreadsKey,
88-
resourceTypeEnum,
88+
ResourceTypeEnum,
8989
MarkerPayload,
9090
Address,
9191
AddressProof,
@@ -2822,7 +2822,7 @@ export function getThreadProcessDetails(
28222822
function _shouldShowBothOriginAndFileName(
28232823
fileName: string,
28242824
origin: string,
2825-
resourceType: resourceTypeEnum | null
2825+
resourceType: ResourceTypeEnum | null
28262826
): boolean {
28272827
// If the origin string is just a URL prefix that's part of the
28282828
// filename, it doesn't add any useful information, so only show

src/types/profile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type IndexIntoLibs = number;
1717
export type IndexIntoNativeSymbolTable = number;
1818
export type IndexIntoCategoryList = number;
1919
export type IndexIntoSubcategoryListForCategory = number;
20-
export type resourceTypeEnum = number;
20+
export type ResourceTypeEnum = number;
2121
export type ThreadIndex = number;
2222
// The Tid is most often a number. However in some cases such as merged profiles
2323
// we could generate a string.
@@ -370,7 +370,7 @@ export type ResourceTable = {
370370
lib: Array<IndexIntoLibs | null>;
371371
name: Array<IndexIntoStringTable>;
372372
host: Array<IndexIntoStringTable | null>;
373-
type: resourceTypeEnum[];
373+
type: ResourceTypeEnum[];
374374
};
375375

376376
/**

0 commit comments

Comments
 (0)