1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { unionize as originalUnionize, SingleValueRec } from 'unionize';
7 export * from 'unionize';
9 type TagRecord<Record> = { [T in keyof Record]: T };
11 export function unionize<Record extends SingleValueRec>(record: Record) {
12 const tags = {} as TagRecord<Record>;
13 for (const tag in record) {
16 return {...originalUnionize(record, {