react+hook+ts项目总结-Ts中[propName: string]: any;

export interface ResAuthButtons {
		[propName: string]: any;
	}

Ts限制表示任意类型

posted @ 2023-03-01 16:28  前端导师歌谣  阅读(17)  评论(0)    收藏  举报  来源