Skip to content

Commit

Permalink
type children so the app builds again
Browse files Browse the repository at this point in the history
  • Loading branch information
orangecms committed Nov 15, 2023
1 parent 6d8382f commit 6c90339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const NODE_HEIGHT = 80;
const weightedNode = (node: DTNode): DTNode => {
if (node.children && node.children.length > 0) {
let size = 0;
const cs = node.children.map((c) => {
const cs = node.children.map((c: DTNode) => {
const wc = weightedNode(c);
size += wc.size;
return wc;
Expand Down

0 comments on commit 6c90339

Please sign in to comment.