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