mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 01:24:41 +08:00
Fix input details
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user