我有以下内容:
export type UHaem = 'haem.cbc' | 'haem.rbc'
export type UChem = 'chem.glucose' | 'chem.electrolytes'
如何将两者合并以获得最终类型,如下所示:
export type ULab = 'haem.cbc' | 'haem.rbc' | chem.glucose' | 'chem.electrolytes'
就这么简单:
export type ULab = UHaem | UChem;