mirror of
https://github.com/al0cam/AutoMover.git
synced 2026-07-22 05:41:25 +00:00
initial creation of RuleIO
This commit is contained in:
parent
79c9de8af8
commit
20363baab6
1 changed files with 20 additions and 0 deletions
20
IO/RuleIO.ts
Normal file
20
IO/RuleIO.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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;
|
||||
Loading…
Reference in a new issue