TLDR Web Dev · ARTICLES & TUTORIALS
SOMETIMES, OBJECT PROPERTY ORDER MATTERS
Summary from the TLDR Web Dev newsletter
Since version 4.7, the order of properties in an object in TypeScript can affect type inference. This change was introduced to address bugs related to context-sensitive functions, but it can lead to unexpected errors when properties are reordered.