Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez Baquero committed Oct 3, 2023
1 parent bece2fb commit c720b68
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/contexts/NodesContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ import {
import { Node } from "../hooks/useNodes";
import { EntityType } from "./AppContext";

type GlobalStats = {
medianTTFB: number;
}

type NodesContextType = {
nodes: Node[] | [];
setNodes: (nodes: Node[] | []) => void;
globalStats: { medianTTFB: number };
globalStats: GlobalStats;
};

const initialValues = {
const initialValues: NodesContextType = {
nodes: [],
setNodes: () => {},
globalStats: { medianTTFB: 70 },
Expand Down

0 comments on commit c720b68

Please sign in to comment.