1
我是TypeScript的新手,如果我犯了一個錯誤,請耐心等待。簡單的TypeScript傳播不起作用?
根據this,在線打字稿指南,下列TypeSript是有效的:
function foo(x, y, z) { }
var args = [0, 1, 2];
foo(...args);
取而代之的是,當我運行tsc *.ts --watch --target ES6
編譯我的打字稿,我得到error TS2346: Supplied parameters do not match any signature of call target.
應該不是這些工作只是精細?這是一個相當基本的任務,所以我做錯了什麼?
? – Paarth
這是一個已知的Typescript問題:https://github.com/Microsoft/TypeScript/issues/4130 – GPicazo