0
應該工作嗎?是一個數組的函數簽名
interface MyInterface{
}
class MyClass {
DoSomething(callback: (MyInterface[]) => void) {
...
}
}
編譯器不喜歡該參數是MyInterface的數組。
應該工作嗎?是一個數組的函數簽名
interface MyInterface{
}
class MyClass {
DoSomething(callback: (MyInterface[]) => void) {
...
}
}
編譯器不喜歡該參數是MyInterface的數組。
你缺少參數名:
interface MyInterface{
}
class MyClass {
DoSomething(callback: (arg:MyInterface[]) => void) {
}
}