export interface JsonConfigEntry { id: string; } export default abstract class JsonConfigFile { entries: T[]; abstract get jsonPath(): string; read(): Promise; write(): Promise; getEntryById(id: string): Promise; getEntryBySafeFunctionName(safeFunctionName: string): Promise; /** * Add a new entry and save the Json file * @param entry */ addEntry(entry: T): Promise; removeEntryById(id: string): Promise; updateEntry(entry: T): Promise; }