Skip to content

Commit

Permalink
chore(nix): Update dependencies. (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhess authored Aug 4, 2023
2 parents e0555f6 + 719f82b commit eca29d6
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 51 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ primer-api.json
src/primer-api/
licenses/
COPYING
flake.lock
6 changes: 6 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import("prettier").Options} */
const config = {
trailingComma: "es5",
};

module.exports = config;
77 changes: 38 additions & 39 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"orval": "^6.16.0",
"postcss": "^8.4.24",
"postcss-import": "^15.1.0",
"prettier": "^2.8.8",
"prettier": "^3.0.1",
"storybook": "^7.0.22",
"tailwindcss": "3.3.2",
"ts-node": "^10.9.1",
Expand Down
10 changes: 8 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/components/TreeReactFlow/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { NodeFlavor } from "./Flavor";
/** A generic graph. */
export type Graph<
N extends { id: string },
E extends { source: string; target: string }
E extends { source: string; target: string },
> = {
nodes: N[];
edges: E[];
Expand All @@ -22,7 +22,7 @@ export type Graph<
export const graphMap = <
N1 extends { id: string },
N2 extends { id: string },
E extends { source: string; target: string }
E extends { source: string; target: string },
>(
{ nodes, edges }: Graph<N1, E>,
f: (n: N1) => N2
Expand All @@ -33,7 +33,7 @@ export const graphMap = <

export const combineGraphs = <
N extends { id: string },
E extends { source: string; target: string }
E extends { source: string; target: string },
>(
gs: Graph<N, E>[]
): Graph<N, E> => {
Expand Down Expand Up @@ -77,7 +77,7 @@ export const treeNodes = <N, E>({

export const treeToGraph = <
N extends { id: string },
E extends { source: string; target: string }
E extends { source: string; target: string },
>(
tree: Tree<N, E>
): Graph<N, E & { isRight: boolean }> => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/TreeReactFlow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ const makePrimerNode = async (
(child: PrimerNode, isRight: boolean) => PrimerEdge,
/* Nodes of nested trees, already positioned.
We have to lay these out first in order to know the dimensions of boxes to be drawn around them.*/
PrimerGraph[]
PrimerGraph[],
]
> => {
const selected =
Expand Down Expand Up @@ -1257,7 +1257,7 @@ const SetTreeReactFlowCallbacks = ({
* and safely act on that type in handlers. */
export const ReactFlowSafe = <
N extends RFNode<unknown> & { type: string },
E extends RFEdge<unknown> & { type: string }
E extends RFEdge<unknown> & { type: string },
>(
p: Omit<Parameters<typeof ReactFlow>[0], "onNodeClick" | "edgeTypes"> & {
nodes: N[];
Expand Down
4 changes: 2 additions & 2 deletions src/components/TreeReactFlow/layoutTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const layoutTree = <
E extends {
source: string;
target: string;
}
},
>(
primerTree: Tree<N, E>,
p: LayoutParams
Expand Down Expand Up @@ -86,7 +86,7 @@ const makeNodeMap = <
id: string;
data: { width: number; height: number };
},
E extends { source: string; target: string }
E extends { source: string; target: string },
>(
nodeInfos: NodeInfo<N>[],
edgeInfos: EdgeInfo<E>[],
Expand Down

0 comments on commit eca29d6

Please sign in to comment.