函数参数二者必须存在一个如何定义TS类型

Typescript如何定义两个参数必须有一个存在;
例如函数

function abc(arg){}

参数arg要么为{a:0},要么为{b: 0},就要么存在参数a,要么存在参数b,二者必须存在一个,ts需要怎么去定义这个参数类型

type myType = {a: number} | {b: number};
function abc(arg: myType) {}