Skip to content

Commit 4633a85

Browse files
piotrskihoxyq
authored andcommitted
fix: add missing return type
1 parent 4ba16b0 commit 4633a85

File tree

1 file changed

+4
-1
lines changed
  • packages/react-devtools-shared/src/backend/views

1 file changed

+4
-1
lines changed

packages/react-devtools-shared/src/backend/views/utils.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ export function getElementDimensions(domElement: HTMLElement): {
139139
};
140140
}
141141

142-
export function extractHOCNames(displayName: string) {
142+
export function extractHOCNames(displayName: string):{
143+
baseComponentName: string,
144+
hocNames: string[],
145+
} {
143146
if (!displayName) return {baseComponentName: '', hocNames: []};
144147

145148
const hocRegex = /([A-Z][a-zA-Z0-9]*?)\((.*)\)/g;

0 commit comments

Comments
 (0)