Is undefined a subtype of null in typescipt

前端 未结 0 1662
感动是毒
感动是毒 2021-02-07 19:45

I am reading the typescript handbook and came across the following code.

declare function create(o: object | null): void;
create({ prop: 0 });
create(null);
creat         


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