mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-08 05:03:39 +08:00
chore: add todos
This commit is contained in:
parent
6fddc7c070
commit
5cea19e299
2 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue