我有这个:

const symbols = {
   typeMap: Symbol('type.map')
}

interface LangMap {
  [key: string]: string | true,
  golang: string,
  typescript: string,
  java: string,
  swift: string
}

export const setTypeMap = function(v: LangMap) : LangMap{
  v[symbols.typeMap] = true;
  return v;
};

我收到此错误:

TS2538:类型'唯一符号'不能用作索引类型 .

enter image description here

有谁知道那个错误是什么?我在tsc版本 3.1.6 .