Harmonize tsconfig for frontend and server.

This commit is contained in:
baldo 2022-09-14 16:33:43 +02:00
parent 894ee97fdf
commit 22bff3496a
30 changed files with 77 additions and 53 deletions

View file

@ -1,7 +1,7 @@
/**
* Utility functions for JSON.
*/
import { isJSONValue, JSONObject, JSONValue } from "../types";
import { isJSONValue, type JSONObject, type JSONValue } from "../types";
/**
* Parses the given `string` and converts it into a {@link JSONValue}.

View file

@ -1,7 +1,7 @@
/**
* Utility functions for node related data.
*/
import { MAC, MapId } from "../types";
import type { MAC, MapId } from "../types";
/**
* Converts the MAC address of a Freifunk node to an id representing it on the community's node map.

View file

@ -1,7 +1,7 @@
/**
* Utility functions all around strings.
*/
import { isInteger, MAC } from "../types";
import { isInteger, type MAC } from "../types";
/**
* Trims the given `string` and replaces multiple whitespaces by one space each.

View file

@ -1,7 +1,7 @@
/**
* Utility functions for "wibbly wobbly timey wimey" stuff.
*/
import { UnixTimestampMilliseconds, UnixTimestampSeconds } from "../types";
import type { UnixTimestampMilliseconds, UnixTimestampSeconds } from "../types";
/**
* Converts an {@link UnixTimestampMilliseconds} to an {@link UnixTimestampSeconds} rounding down.