Fix ESLint

This commit is contained in:
Jesse Wierzbinski 2023-09-10 17:46:20 -10:00
parent 436a79d99f
commit 636f2ffff8
No known key found for this signature in database
GPG key ID: F9A1E418934E40B0
44 changed files with 171 additions and 161 deletions

View file

@ -1,6 +1,6 @@
import data from "../config/config.toml";
export type ConfigType = {
export interface ConfigType {
database: {
host: string;
port: number;
@ -8,7 +8,7 @@ export type ConfigType = {
password: string;
database: string;
}
[ key: string ]: any;
[ key: string ]: unknown;
}
export const getConfig = () => {

View file

@ -1,4 +1,4 @@
export const jsonResponse = (data: object, status: number = 200) => {
export const jsonResponse = (data: object, status = 200) => {
return new Response(JSON.stringify(data), {
headers: {
"Content-Type": "application/json"