mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: ♻️ Always use explicit types in every function
This commit is contained in:
parent
54cea29ce9
commit
c1dcdc78ae
62 changed files with 359 additions and 226 deletions
|
|
@ -8,6 +8,7 @@
|
|||
import { loadConfig, watchConfig } from "c12";
|
||||
import { fromZodError } from "zod-validation-error";
|
||||
import { type Config, configValidator } from "./config.type";
|
||||
export type { Config } from "./config.type";
|
||||
|
||||
const { config } = await watchConfig({
|
||||
configFile: "./config/config.toml",
|
||||
|
|
@ -29,4 +30,3 @@ if (!parsed.success) {
|
|||
const exportedConfig = parsed.data;
|
||||
|
||||
export { exportedConfig as config };
|
||||
export type { Config };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue