From b0771bdfb5a828354cdd213ac213c87fdb33f37e Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Fri, 23 Feb 2024 10:56:56 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(index.d.ts):=20add=20server?= =?UTF-8?q?=20config=20object=20definition=20for=20better=20documentation?= =?UTF-8?q?=20The=20server=20config=20object=20definition=20has=20been=20a?= =?UTF-8?q?dded=20to=20the=20global=20declaration=20file=20to=20provide=20?= =?UTF-8?q?clear=20documentation=20on=20the=20structure=20of=20the=20serve?= =?UTF-8?q?r=20configuration=20object.=20This=20will=20help=20developers?= =?UTF-8?q?=20understand=20the=20expected=20format=20of=20the=20server=20c?= =?UTF-8?q?onfiguration=20object=20and=20its=20properties.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/index.d.ts b/index.d.ts index bf4a780..3feb3ea 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 {