Skip to content

Commit a545d5b

Browse files
committed
Remove unneeded declare
It turns out that we don't need it, flow is smart enough to realize that the function is declared in the two branches :)
1 parent 66e77f6 commit a545d5b

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/isomorphic/hooks/ReactComponentTreeHook.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,6 @@ function isNative(fn) {
4343
}
4444
}
4545

46-
type Item = { // eslint-disable-line no-unused-vars
47-
element: ReactElement,
48-
parentID: DebugID,
49-
text: ?string,
50-
childIDs: Array<DebugID>,
51-
isMounted: bool,
52-
updateCount: number,
53-
};
54-
55-
declare function getItem(id: DebugID): ?Item;
56-
declare function removeItem(id: DebugID): void;
57-
declare function setItem(id: DebugID, item: Item): void;
58-
declare function getItemIDs(): Array<DebugID>;
59-
60-
declare function addRoot(id: DebugID): void;
61-
declare function removeRoot(id: DebugID): void;
62-
declare function getRootIDs(): Array<DebugID>;
63-
6446
var canUseCollections = (
6547
// Array.from
6648
typeof Array.from === 'function' &&

0 commit comments

Comments
 (0)