Skip to content

Commit

Permalink
fixup! 🚧 ignore existing violations of strictNullChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Nov 1, 2024
1 parent eec456c commit 51cb597
Showing 1 changed file with 84 additions and 42 deletions.
126 changes: 84 additions & 42 deletions .tsc-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@
"count": 2,
"message": "'root.children' is possibly 'undefined'."
},
"10c2969eced8ae9cd409fbfe44cfc0341d24f524": {
"file": "src/actions/tree.ts",
"code": "TS2345",
"count": 1,
"message": "Argument of type 'ColoringInfo | undefined' is not assignable to parameter of type 'ColoringInfo'."
},
"13414df7dea7379d3dd9d028ffe59bffbb31c4a4": {
"file": "src/actions/tree.ts",
"code": "TS2345",
Expand All @@ -112,11 +118,17 @@
"count": 1,
"message": "Type 'ReduxNode[] | null' is not assignable to type 'ReduxNode[]'."
},
"a58a9c4311922f282ec618826b38b1a6db08eb49": {
"89e3c824a3ea9a86933606e0b9bb661ba42caf13": {
"file": "src/components/tree/index.ts",
"code": "TS2322",
"count": 1,
"message": "Type '(state: RootState) => { tree: TreeState; treeToo: any; selectedNode: ReactTreeNode | null; dateMinNumeric: number; dateMaxNumeric: number; filters: Record<string | symbol, { ...; }[]>; ... 21 more ...; showOnlyPanels: boolean; }' is not assignable to type 'MapStateToProps<TreeComponentPropsFromState, Record<string, never>, EmptyObject & RootState>'."
"message": "Type 'string | undefined' is not assignable to type 'string'."
},
"17df4057bdba66156a0ef8224db4033f8e604c43": {
"file": "src/components/tree/index.ts",
"code": "TS2322",
"count": 1,
"message": "Type 'ColorScale | undefined' is not assignable to type 'ColorScale'."
},
"68fb9475c32ad13d6e158ab5aa8b7519e9ca51aa": {
"file": "src/components/tree/phyloTree/change.ts",
Expand Down Expand Up @@ -163,7 +175,7 @@
"bf32b536424504273269a2306ce1f0c083bdcf17": {
"file": "src/components/tree/phyloTree/helpers.ts",
"code": "TS2322",
"count": 5,
"count": 6,
"message": "Type 'number | undefined' is not assignable to type 'number'."
},
"5746ff1e147a9ca026a861f5000f1e01096e5b25": {
Expand Down Expand Up @@ -214,6 +226,12 @@
"count": 5,
"message": "'node.shell' is possibly 'undefined'."
},
"9c2d4ce6d139cd706439081a778cbe395d415a82": {
"file": "src/components/tree/phyloTree/helpers.ts",
"code": "TS2322",
"count": 3,
"message": "Type 'ReduxNode | undefined' is not assignable to type 'ReduxNode'."
},
"c9cb6fc4058123e0f17d90a5bc7f30752a157c93": {
"file": "src/components/tree/phyloTree/helpers.ts",
"code": "TS2345",
Expand Down Expand Up @@ -244,18 +262,18 @@
"count": 2,
"message": "'n.parentInfo' is possibly 'undefined'."
},
"9c2d4ce6d139cd706439081a778cbe395d415a82": {
"file": "src/components/tree/phyloTree/helpers.ts",
"code": "TS2322",
"count": 1,
"message": "Type 'ReduxNode | undefined' is not assignable to type 'ReduxNode'."
},
"48ced42c56e7df31eb74346a612ed9ecd494ca58": {
"file": "src/components/tree/phyloTree/helpers.ts",
"code": "TS18048",
"count": 1,
"message": "'acc' is possibly 'undefined'."
},
"b2c4421be9a5aed87db4687bfc607d582a1b61d1": {
"file": "src/components/tree/phyloTree/helpers.ts",
"code": "TS2322",
"count": 1,
"message": "Type '(d: PhyloNode) => [number, number | undefined]' is not assignable to type '(d: PhyloNode) => [number, number]'."
},
"17d992147cb02b7b350d38ca1932257fea0a197b": {
"file": "src/components/tree/phyloTree/helpers.ts",
"code": "TS18048",
Expand Down Expand Up @@ -355,7 +373,7 @@
"88b6723798cb6536421ca8e94e9a72bcc3e1caf4": {
"file": "src/components/tree/phyloTree/layouts.ts",
"code": "TS2345",
"count": 2,
"count": 4,
"message": "Argument of type 'PhyloNode | undefined' is not assignable to parameter of type 'PhyloNode'."
},
"39e2ca8d69d32f6141faedd4675b81227c33deac": {
Expand Down Expand Up @@ -484,6 +502,18 @@
"count": 1,
"message": "Argument of type 'number' is not assignable to parameter of type 'never'."
},
"c9c7807f44601954f73a744a511e1bfab0d2d2f6": {
"file": "src/components/tree/phyloTree/layouts.ts",
"code": "TS18048",
"count": 1,
"message": "'phyloNode.n.children' is possibly 'undefined'."
},
"804abd818a5bd7e11c613f2bbd75ca907c625eca": {
"file": "src/components/tree/phyloTree/layouts.ts",
"code": "TS18048",
"count": 2,
"message": "'d.n.name' is possibly 'undefined'."
},
"a3222d11a4f7ba5252c314f1219111407673406d": {
"file": "src/components/tree/phyloTree/layouts.ts",
"code": "TS18048",
Expand All @@ -502,6 +532,12 @@
"count": 1,
"message": "Type 'PhyloNode | undefined' is not assignable to type 'PhyloNode'."
},
"6191437613fa3eb41f93ee992a32b8615637b3b0": {
"file": "src/components/tree/phyloTree/phyloTree.ts",
"code": "TS2538",
"count": 1,
"message": "Type 'undefined' cannot be used as an index type."
},
"363c150ed1de78185b1dcf32f31191537801ca89": {
"file": "src/components/tree/phyloTree/regression.ts",
"code": "TS2532",
Expand Down Expand Up @@ -550,24 +586,30 @@
"count": 1,
"message": "Argument of type '(this: SVGPathElement, d: PhyloNode) => string | undefined' is not assignable to parameter of type 'string | number | boolean | readonly (string | number)[] | ValueFn<SVGPathElement, PhyloNode, string | number | boolean | readonly (string | number)[] | null> | null'."
},
"a3bb505e84f358500cd634dd62bf7f798e88407a": {
"file": "src/components/tree/phyloTree/renderers.ts",
"code": "TS2345",
"count": 6,
"message": "Argument of type 'string | undefined' is not assignable to parameter of type 'string'."
},
"f80b5a8a3d05b8e56a99a7ffaed27b22ed615911": {
"file": "src/components/tree/phyloTree/renderers.ts",
"code": "TS2345",
"count": 3,
"message": "Argument of type '(this: SVGCircleElement, d: PhyloNode) => number | undefined' is not assignable to parameter of type 'string | number | boolean | readonly (string | number)[] | ValueFn<SVGCircleElement, PhyloNode, string | number | boolean | readonly (string | number)[] | null> | null'."
},
"ca07eb0918f3cf0265a060026e6bcac73a568444": {
"file": "src/components/tree/phyloTree/renderers.ts",
"code": "TS2322",
"count": 1,
"message": "Type 'string | undefined' is not assignable to type 'string'."
},
"754597b3def16f18b07c8f0cd38666c82496e417": {
"file": "src/components/tree/phyloTree/renderers.ts",
"code": "TS18048",
"count": 2,
"message": "'d.branch' is possibly 'undefined'."
},
"a4b28ff51ee70f72893ed099db55dae92320def7": {
"file": "src/components/tree/phyloTree/renderers.ts",
"code": "TS2769",
"count": 1,
"message": "No overload matches this call."
},
"0c398ad7666e583236cb8cc6f230a2799afbe3c2": {
"file": "src/components/tree/phyloTree/renderers.ts",
"code": "TS2345",
Expand All @@ -586,12 +628,6 @@
"count": 2,
"message": "'d.n.parent.shell' is possibly 'undefined'."
},
"a3bb505e84f358500cd634dd62bf7f798e88407a": {
"file": "src/components/tree/phyloTree/renderers.ts",
"code": "TS2345",
"count": 1,
"message": "Argument of type 'string | undefined' is not assignable to parameter of type 'string'."
},
"005310572b14281da96c2b9977d7899477678468": {
"file": "src/components/tree/phyloTree/types.ts",
"code": "TS2411",
Expand All @@ -604,12 +640,24 @@
"count": 2,
"message": "'phylotree' is possibly 'undefined'."
},
"69122c92eaa7f721f10ebf1961ecf79c600ae29d": {
"file": "src/components/tree/reactD3Interface/callbacks.ts",
"code": "TS2345",
"count": 2,
"message": "Argument of type 'string | undefined' is not assignable to parameter of type 'string'."
},
"82af80b221d5ce8f28397ff64720c3324957fff3": {
"file": "src/components/tree/reactD3Interface/callbacks.ts",
"code": "TS18046",
"count": 1,
"message": "'e' is of type 'unknown'."
},
"3b9d5dce45456330cab84a6683203236bc674e12": {
"file": "src/components/tree/reactD3Interface/callbacks.ts",
"code": "TS2322",
"count": 3,
"message": "Type 'string | undefined' is not assignable to type 'string'."
},
"5bdb56c3f7ad49fb4fe9b7b0966b11bcd1caa91e": {
"file": "src/components/tree/reactD3Interface/callbacks.ts",
"code": "TS18048",
Expand Down Expand Up @@ -652,12 +700,6 @@
"count": 1,
"message": "'dd' is of type 'unknown'."
},
"3b9d5dce45456330cab84a6683203236bc674e12": {
"file": "src/components/tree/reactD3Interface/callbacks.ts",
"code": "TS2322",
"count": 2,
"message": "Type 'string | undefined' is not assignable to type 'string'."
},
"92c841bdb6e1485e522311cd66f20d8cdbc852b4": {
"file": "src/components/tree/reactD3Interface/change.ts",
"code": "TS2322",
Expand Down Expand Up @@ -772,6 +814,12 @@
"count": 4,
"message": "Variable 'genotype' is used before being assigned."
},
"08fe34f9f5f9ef961e177e86557a626969b78537": {
"file": "src/util/colorScale.ts",
"code": "TS2532",
"count": 8,
"message": "Object is possibly 'undefined'."
},
"327a4beb58057fcb6b27b7ca0f51bdc8d92c6d73": {
"file": "src/util/colorScale.ts",
"code": "TS2345",
Expand Down Expand Up @@ -826,30 +874,18 @@
"count": 1,
"message": "Variable 'domain' is used before being assigned."
},
"fd6b165e4aa475dd4eb3b8db0cb3ee5ef0d371f6": {
"a8d5c32ab622995d65513fd0366bb6fed7e0275c": {
"file": "src/util/colorScale.ts",
"code": "TS2345",
"count": 1,
"message": "Argument of type 'string | undefined' is not assignable to parameter of type 'string | number'."
"message": "Argument of type 'string | undefined' is not assignable to parameter of type 'string'."
},
"9302b5bfe6785bfc9b90dc30796f3a65ac969876": {
"file": "src/util/colorScale.ts",
"code": "TS2345",
"count": 1,
"message": "Argument of type '(string | undefined)[]' is not assignable to parameter of type 'Iterable<string>'."
},
"08fe34f9f5f9ef961e177e86557a626969b78537": {
"file": "src/util/colorScale.ts",
"code": "TS2532",
"count": 17,
"message": "Object is possibly 'undefined'."
},
"f5a3cf71810106ce53745aa903b8f0e9332e0239": {
"file": "src/util/colorScale.ts",
"code": "TS18048",
"count": 2,
"message": "'i' is possibly 'undefined'."
},
"94e729587353db05972d97d02635cb3e62815db1": {
"file": "src/util/colorScale.ts",
"code": "TS2345",
Expand All @@ -862,6 +898,12 @@
"count": 2,
"message": "Type 'string[] | undefined' is not assignable to type 'string[]'."
},
"72cc1f79f4b15a5d9b86df5367b5135658efa9b5": {
"file": "src/util/colorScale.ts",
"code": "TS2322",
"count": 2,
"message": "Type 'number | undefined' is not assignable to type 'number'."
},
"2b8f7433fe36dd106b854039f91464726c40a822": {
"file": "src/util/colorScale.ts",
"code": "TS18048",
Expand Down

0 comments on commit 51cb597

Please sign in to comment.