Icu 12933 updates to target model to support aliasing (#2214)

* feat: 🎸 target aliases association API, form creation
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2024-04-05 16:35:23 -07:00
1 parent ac5110d94a
commit c8839d6db1
19 files changed
+197 -60

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Transform from '@ember-data/serializer/transform';
import { TrackedArray } from 'tracked-built-ins';
export default class ArrayTransform extends Transform {
deserialize(serialized) {
const arr = new TrackedArray(serialized || []);
return arr;
}
serialize(deserialized) {
const arr = deserialized || [];
return arr;
}
}