mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-18 20:34:54 +08:00
Avoid using arrays when unnecessary
This commit is contained in:
@@ -3,6 +3,8 @@ import ObjectEntity from "../entity/ObjectEntity"
|
||||
import PinEntity from "../entity/PinEntity"
|
||||
import SerializerFactory from "./SerializerFactory"
|
||||
|
||||
/** @typedef {import("../element/NodeElement").default} NodeElement */
|
||||
|
||||
export default class ObjectSerializer extends ISerializer {
|
||||
|
||||
constructor() {
|
||||
@@ -29,7 +31,10 @@ export default class ObjectSerializer extends ISerializer {
|
||||
return parseResult.value
|
||||
}
|
||||
|
||||
/** @param {String} value */
|
||||
/**
|
||||
* @param {String} value
|
||||
* @returns {NodeElement[]}
|
||||
*/
|
||||
readMultiple(value) {
|
||||
const parseResult = ISerializer.grammar.MultipleObject.parse(value)
|
||||
if (!parseResult.status) {
|
||||
|
||||
Reference in New Issue
Block a user