How to make object type from an object keys in typescript?

后端 未结 0 1672
被撕碎了的回忆
被撕碎了的回忆 2020-12-01 02:42

I have an js object with two keys, foo and bar.

const x = { foo: \'\', bar: \'\' }

Also I have abc fun

相关标签:
回答
  • 消灭零回复
提交回复
热议问题