Object types try to match the syntax for objects in JavaScript as much as possible ... var obj: { [number]: string } = {}; obj[42].length; // No type error, ...
確定! 回上一頁