constアサーション「as const」 (const assertion) | TypeScript入門『サバイバルTypeScript』

オブジェクトリテラルの末尾にas constを記述すればプロパティがreadonlyでリテラルタイプで指定した物と同等の扱いになります。