eslint报错Spread types may only be created from object types解决方法
eslint报错Spread types may only be created from object types,如何解决呢?先来看一个 eslint 报错信息:
ERROR in src/views/components/table.vue:37:7
TS2698: Spread types may only be created from object types.
35 | pageSize: props.page.size,
36 | total: props.page.total_counts,
> 37 | ...context.attrs.pagination,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
38 | }))