Say I have this type:
export interface Opts {
paths?: string | Array<string>,
path?: string | Array<string>
}
I want to tell the user that they must pass either paths or path, but it is not necessary to pass both. Right now the problem is that this compiles:
export const foo = (o: Opts) => {};
foo({});
does anyone know to allow for 2 or more optional but at least 1 is necessary parameters with TS?