📝 docs(index.d.ts): add server config object definition for better documentation
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
The server config object definition has been added to the global declaration file to provide clear documentation on the structure of the server configuration object. This will help developers understand the expected format of the server configuration object and its properties.
This commit is contained in:
Vendored
+14
@@ -116,6 +116,20 @@ declare global {
|
||||
project(): {
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
/**
|
||||
* get server config object
|
||||
*
|
||||
*/
|
||||
server(): {
|
||||
api: {
|
||||
port: number
|
||||
}
|
||||
security: {
|
||||
allowAbsolutePaths: boolean
|
||||
allowUpperPaths: boolean
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface DbPackage {
|
||||
|
||||
Reference in New Issue
Block a user