Fix input details

This commit is contained in:
barsdeveloper
2022-05-08 20:21:37 +02:00
parent 59eaa57217
commit 3c643f0c6a
7 changed files with 214 additions and 108 deletions

View File

@@ -1,7 +1,5 @@
// @ts-check
import Utility from "../Utility"
/**
* @template T
*/
@@ -33,14 +31,6 @@ export default class TypeInitialization {
this.#value = v
}
#decodeString
get decodeString() {
return this.#decodeString
}
set decodeString(v) {
this.#decodeString = v
}
static sanitize(value, targetType) {
if (targetType === undefined) {
targetType = value?.constructor
@@ -72,7 +62,6 @@ export default class TypeInitialization {
value = TypeInitialization.sanitize(new type())
}
}
this.#value = type === String ? Utility.decodeString(value) : value
this.#showDefault = showDefault
this.#type = type
}