Skip to content

Commit b45c466

Browse files
committed
removed 'anys' from typescript, to ensure we are catching erors
1 parent ca55c10 commit b45c466

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/components/History.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const filterHooks = (data: any[]) => {
3838

3939
// main function exported to StateRoute
4040
// below we destructure the props
41-
function History(props: any) {
41+
function History(props: Record<string, unknown>) {
4242
const { width, height, hierarchy, dispatch, sliderIndex, viewIndex } = props;
4343

4444
let root = JSON.parse(JSON.stringify(hierarchy));
@@ -62,8 +62,8 @@ function History(props: any) {
6262
*/
6363
let maked3Tree = function () {
6464
removed3Tree();
65-
const width: any = 800;
66-
const height: any = 600;
65+
const width: number = 800;
66+
const height: number = 600;
6767
const svgContainer = d3
6868
.select(HistoryRef.current)
6969
.append('svg') // svgContainer is now pointing to svg

0 commit comments

Comments
 (0)