refactor: fix ts errors

This commit is contained in:
Azgaar 2022-07-05 22:00:34 +03:00
parent 98ae3292fc
commit 3018d94618
17 changed files with 83 additions and 54 deletions

View file

@ -1,5 +1,3 @@
import {ERROR} from "../config/logging";
interface IPromptStringOptions {
default: string;
required?: boolean;

View file

@ -10,7 +10,7 @@ import {rn} from "utils/numberUtils";
export function reGraph() {
TIME && console.time("reGraph");
const {cells: gridCells, points, features} = grid;
const newCells: {p: number[][]; g: number[]; h: number[]} = {p: [], g: [], h: []}; // store new data
const newCells: {p: TPoints; g: number[]; h: number[]} = {p: [], g: [], h: []}; // store new data
const spacing2 = grid.spacing ** 2;
for (const i of gridCells.i) {