首页 > 解决方案 > 关键对象前的加号是什么意思?

问题描述

在打字稿中键入对象之前加上:

export type Action = {
  +type: string
};

标签: typescript

解决方案


推荐阅读