Files
NeoTachyon/fe-app-podkop/src/podkop/methods/custom/getConfigSections.ts
T

9 lines
269 B
TypeScript

import { Podkop } from '../../types';
import { PODKOP_UCI_PACKAGE } from '../../../constants';
export async function getConfigSections(): Promise<Podkop.ConfigSection[]> {
return uci
.load(PODKOP_UCI_PACKAGE)
.then(() => uci.sections(PODKOP_UCI_PACKAGE));
}