jkchao/typescript-book-chinese

声明类型相同的变量时,变量的值作为变量的类型?

mythFrist opened this issue · 0 comments

const foo = 123
const bar: typeof foo = 456
bar 的类型为123