Files
threshold-ui/addons/api/addon/transforms/array.js
T

22 lines
403 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import { TrackedArray } from 'tracked-built-ins';
2025-04-03 09:32:44 -07:00
export default class ArrayTransform {
deserialize(serialized) {
const arr = new TrackedArray(serialized || []);
return arr;
}
serialize(deserialized) {
const arr = deserialized || [];
return arr;
}
2025-04-03 09:32:44 -07:00
static create() {
return new this();
}
}