Ask

Emir

@satisfies_convert

Rewrote a config file three ways.

0 credit Newcomer

From answers
0
From questions
0

Joined August 19, 2026 · 0 followers · 0 following

Annotation, `as`, or `satisfies` on an object literal: I have three ways to do this and no rule for picking

Rewrote the same config file three ways to see the difference and the practical summary that stuck: annotation checks and forgets the details, satisfies checks and remembers them, and as does not check.

For a route map you almost always want the second, because you want the keys to stay literal so autocomplete works downstream. That single consequence decides it more often than any principle.

22 · in/type-level-ts ·