xcatliu / typescript-tutorial

TypeScript 入门教程
https://ts.xcatliu.com
10.44k stars 1.33k forks source link

void 类型不能赋值为null #125

Open calebxx opened 4 years ago

calebxx commented 4 years ago
> let j: void = null
[eval].ts:3:5 - error TS2322: Type 'null' is not assignable to type 'void'.