From 380bd8978733668b73bd5c7d6301782f6e010af9 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Fri, 23 Feb 2024 10:40:10 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20feat(index.d.ts):=20add=20Config?= =?UTF-8?q?Package=20interface=20to=20provide=20utility=20functions=20for?= =?UTF-8?q?=20configuration=20management=20The=20ConfigPackage=20interface?= =?UTF-8?q?=20is=20added=20to=20provide=20utility=20functions=20for=20conf?= =?UTF-8?q?iguration=20management.=20It=20includes=20methods=20to=20get=20?= =?UTF-8?q?the=20current=20namespace=20string=20and=20the=20current=20proj?= =?UTF-8?q?ect=20object,=20enhancing=20the=20flexibility=20and=20ease=20of?= =?UTF-8?q?=20managing=20configurations=20within=20the=20application.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.d.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/index.d.ts b/index.d.ts index 09ede82..bf4a780 100644 --- a/index.d.ts +++ b/index.d.ts @@ -102,6 +102,22 @@ declare global { job?: JobConfig } + interface ConfigPackage { + /** + * get current namespace string + * + */ + namespace(): string + + /** + * get current project object + * + */ + project(): { + [key: string]: any + } + } + interface DbPackage { /** * read results from a collection @@ -652,6 +668,7 @@ declare global { [key: string]: any } + config: ConfigPackage db: DbPackage smtp: SmtpPackage fs: FsPackage