chore: add todos

This commit is contained in:
Miodec 2024-02-05 12:37:30 +01:00
parent 6fddc7c070
commit 5cea19e299
2 changed files with 4 additions and 0 deletions

View file

@ -1,6 +1,8 @@
import _ from "lodash";
import uaparser from "ua-parser-js";
//todo split this file into smaller util files (grouped by functionality)
export function roundTo2(num: number): number {
return _.round(num, 2);
}

View file

@ -2,6 +2,8 @@ import * as Loader from "../elements/loader";
import { normal as normalBlend } from "color-blend";
import { envConfig } from "../constants/env-config";
//todo split this file into smaller util files (grouped by functionality)
async function fetchJson<T>(url: string): Promise<T> {
try {
if (!url) throw new Error("No URL");