mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-17 10:41:10 +01:00
✨ Add new types for integration configuration
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { ConfigType } from '../../types/config';
|
||||
import { BackendConfigType, ConfigType } from '../../types/config';
|
||||
import { configExists } from './configExists';
|
||||
import { getFallbackConfig } from './getFallbackConfig';
|
||||
import { readConfig } from './readConfig';
|
||||
|
||||
export const getConfig = (name: string): ConfigType => {
|
||||
export const getConfig = (name: string): BackendConfigType => {
|
||||
if (!configExists(name)) return getFallbackConfig();
|
||||
return readConfig(name);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user