noticeUwuzu/types/config.d.ts

63 lines
970 B
TypeScript

interface earthquakeTypes {
reconnectTimes: number;
websocketUrl: string;
areasCsvUrl: string;
maxScaleMin: number;
}
interface weatherTypes {
splitCount: number;
}
interface stopsTypes {
start: number;
stop: number;
}
interface timeTypes {
stopTimes: stopsTypes;
}
interface emergencyMailTypes {
function: boolean;
host: string;
port: number;
user: string;
password: string;
secure: boolean;
to: string | string[];
}
interface emergencyTypes {
function: boolean;
mail: emergencyMailTypes;
report: boolean;
}
interface legalTypes {
terms: string;
privacy: string;
}
interface adminTypes {
name: string;
showMail: string | false;
}
interface uwuzuTypes {
apiToken: string;
clientToken?: string;
host: string;
}
export interface configTypes {
time: timeTypes,
earthquake: earthquakeTypes;
weather: weatherTypes;
emergency: emergencyTypes;
legal: legalTypes;
admin: adminTypes;
uwuzu: uwuzuTypes;
}