Started work on serialization, refactoring

This commit is contained in:
barsdeveloper
2021-10-05 17:26:34 +02:00
parent 5032289e86
commit e8d9963a18
10 changed files with 283 additions and 19 deletions

17
js/ETypesNames.js Normal file
View File

@@ -0,0 +1,17 @@
export default class ETypesNames {
constructor(type) {
switch (type) {
case 'Class':
case 'None':
this.value = type
break
default:
throw new Error('Unexpected type name')
}
}
toString() {
return this.value
}
}