mirror of
https://github.com/al0cam/AutoMover.git
synced 2026-07-22 12:10:26 +00:00
20 lines
409 B
TypeScript
20 lines
409 B
TypeScript
class SettingsIO {
|
|
private static instance: SettingsIO;
|
|
|
|
private constructor() {}
|
|
|
|
public static getInstance(): SettingsIO {
|
|
if (!SettingsIO.instance) {
|
|
SettingsIO.instance = new SettingsIO();
|
|
}
|
|
return SettingsIO.instance;
|
|
}
|
|
|
|
// reading from yaml
|
|
// reading from json
|
|
// reading from regular txt file
|
|
|
|
}
|
|
|
|
const settingsIO = SettingsIO.getInstance();
|
|
export default settingsIO;
|