pipe(
Match.type<string | number | ReadonlyArray<{ id: string }>>(),
Match.when(Match.string, (x) => `"${x.replace(/"/g, '""')}"`),
Match.when(Match.number, (x) => x + ''),
// what goes here?
)
pipe(
Match.type<string | number | ReadonlyArray<{ id: string }>>(),
Match.when(Match.string, (x) => `"${x.replace(/"/g, '""')}"`),
Match.when(Match.number, (x) => x + ''),
// what goes here?
)