Comment Comment by pcwalton TypeScript isn't sound, so you can't rely on the types for optimization. The shape/hidden class optimization that JS engines already have is probably about as good as you can do. parent pcwalton 8 years ago