aligned with established project structure

This commit is contained in:
2020-04-01 05:52:36 +05:30
parent 97528c2225
commit b98749ed00
93 changed files with 3837 additions and 112 deletions

View File

@@ -0,0 +1,17 @@
const create{{pascalCase name}} = () => {
let examplePrivateVariable = 0
return {
getExamplePrivateVariable: () => {
return examplePrivateVariable
},
setExamplePrivateVariable: (n) => {
examplePrivateVariable = n
}
}
};
const singleton = create{{pascalCase name}}();
Object.freeze(singleton);
export default singleton;