📝 docs(index.d.ts): add server config object definition for better documentation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
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:
parent
380bd89787
commit
b0771bdfb5
14
index.d.ts
vendored
14
index.d.ts
vendored
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user