new Typescript “satisfies” operator
The difference is what you can do with favoriteColors after you define it. With satisfies, the actual type of the assigned object literal is used as the type of favoriteColors, the information about what keys and values it contains is preserved (the type of the object literal is just checked against the type it’s supposed … Read more