How to make TSC infer that a call overload has been used, without explicitly checking every parameter

前端 未结 0 1560
不思量自难忘°
不思量自难忘° 2021-01-15 02:14

Take a function that has two signature overloads:

type f64 = number;

function add(): f64;
function add(x: f64, y: f64): f64;
function add(x?: f64, y?: f64):          


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