Skip to content

ServerConfig

Defined in: types.ts:30

Type Parameters

Type Parameter

T extends string[]

Properties

auth

auth: string;

Defined in: types.ts:32

Authentication key for requests. I recommend using secure keys, e.g. UUID


host

host: string;

Defined in: types.ts:34

Host to use


port

port: number;

Defined in: types.ts:36

Port to use


tables

tables: T;

Defined in: types.ts:38

Database tables


safe

safe: boolean;

Defined in: types.ts:40

Disables actions that could be risky. Ex: Delete an entire table or delete several tables.


path

path: string;

Defined in: types.ts:42

Path to save all data