Add typing for TreemapPoint functions
Reviewed By: timur-valiev Differential Revision: D30992497 fbshipit-source-id: 616f11d34d2904655f74c9313a511b8e14a13524
This commit is contained in:
committed by
Facebook GitHub Bot
parent
eb04011887
commit
b62cd63f58
@@ -14,7 +14,7 @@ import {Empty} from 'antd';
|
|||||||
|
|
||||||
import React, {PureComponent} from 'react';
|
import React, {PureComponent} from 'react';
|
||||||
|
|
||||||
import {Treemap} from 'react-vis';
|
import {Treemap, TreemapPoint} from 'react-vis';
|
||||||
|
|
||||||
import {toKB, formatMB, formatKB} from './ImagesCacheOverview';
|
import {toKB, formatMB, formatKB} from './ImagesCacheOverview';
|
||||||
|
|
||||||
@@ -130,8 +130,8 @@ export default class ImagesMemoryOverview extends PureComponent<ImagesMemoryOver
|
|||||||
width: 900,
|
width: 900,
|
||||||
margin: 15,
|
margin: 15,
|
||||||
hideRootNode: true,
|
hideRootNode: true,
|
||||||
getSize: (d) => d.value,
|
getSize: (d: TreemapPoint) => d.value,
|
||||||
getColor: (d) => d.hex,
|
getColor: (d: TreemapPoint) => d.hex,
|
||||||
style: STYLE,
|
style: STYLE,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user