mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Fix ESLint
This commit is contained in:
parent
436a79d99f
commit
636f2ffff8
44 changed files with 171 additions and 161 deletions
|
|
@ -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 = () => {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue