摘要: 类型限制在数组里面写函数 export interface Plugin { extraReducers?: () => { [name: string]: (stare: any, ...payload: any) => void } } const plugins: Plugin[] = [ { 阅读全文
posted @ 2020-06-22 16:28 猫神甜辣酱 阅读(661) 评论(0) 推荐(1) 编辑