17914: Replaces deprecated substr() with substring().
[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 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