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