17337: Added another edge case handling
[arvados-workbench2.git] / src / common / unionize.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 export * from 'unionize';
6 import { unionize as originalUnionize, SingleValueRec } from 'unionize';
7
8 export function unionize<Record extends SingleValueRec>(record: Record) {
9     return originalUnionize(record, {
10         tag: 'type',
11         value: 'payload'
12     });
13 }
14