Expecting to encounter a compile time error with this code, but it seems my understanding of enums is off...
enum SortDirection {
ascending = 1,
descending = -1
}
type IndexSpec = {[index: string]: SortDirection};
var i: IndexSpec = {thing: 3}; // Did not generate a compile time error as anticipated