扩张参数必须具有元组类型或传递给 rest 参数

const setSelected = (selected: Record<string, any>, point?: Record<string, any>) => {}

setSelected(...[ {}, {}] ) as Parameters<typeof setSelected>);

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注