Explorar el Código

update comment for deprecated getConfig

Yuki Takei hace 1 año
padre
commit
bdbd51c36c
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      apps/app/src/server/service/config-manager/config-manager.ts

+ 4 - 1
apps/app/src/server/service/config-manager/config-manager.ts

@@ -60,7 +60,10 @@ export class ConfigManager implements IConfigManager<ConfigKey, ConfigValues>, S
     this.lastLoadedAt = new Date();
     this.lastLoadedAt = new Date();
   }
   }
 
 
-  // for backward compatibility
+  /**
+   * @deprecated
+   * Use `getConfig(key)` instead
+   */
   getConfig<K extends ConfigKey>(ns: string, key: K): ConfigValues[K];
   getConfig<K extends ConfigKey>(ns: string, key: K): ConfigValues[K];
 
 
   getConfig<K extends ConfigKey>(key: K): ConfigValues[K];
   getConfig<K extends ConfigKey>(key: K): ConfigValues[K];