@devbro/pashmak 0.1.51 → 0.1.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ import { loadConfig } from '@devbro/pashmak/config';
8
8
  const __filename = fileURLToPath(import.meta.url);
9
9
  const __dirname = dirname(__filename);
10
10
 
11
- export default {
11
+ const project_configs = {
12
12
  databases: await loadConfig('./databases'),
13
13
  storages: await loadConfig('./storages'),
14
14
  mailer: await loadConfig('./mailer'),
@@ -47,3 +47,18 @@ export const $prod = {
47
47
  port: getEnv('PORT', 80),
48
48
  debug_mode: false,
49
49
  };
50
+
51
+
52
+ type DotPaths<T> = {
53
+ [K in keyof T & string]:
54
+ T[K] extends Record<string, any>
55
+ ? K | `${K}.${DotPaths<T[K]>}`
56
+ : K
57
+ }[keyof T & string];
58
+
59
+ declare module '@devbro/neko-config' {
60
+ interface ConfigKeys extends Record<DotPaths<typeof project_configs>, string> {
61
+ }
62
+ }
63
+
64
+ export default project_configs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devbro/pashmak",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
4
4
  "description": "testing application for the entire repo",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",