// A DESCRIPTION FOR EVERY KEY OF A SETTINGS BLOCK, checked by the compiler. // // Each settings.json block type carries a `_FIELD_DOCS: FieldDocs` // record beside it. The mapped type requires one entry per key — optional keys // included, and every member's keys when the type is a union — so adding a // field without documenting it is a tsc error, and a stale entry for a removed // field is an excess-property error. The records are rendered into SETTINGS.md // by lib/settingsDocs.ts; they are the one home of each field's documentation. // // Pure, no imports: a `"use client"` module may carry a record. type AllKeys = T extends unknown ? keyof T : never; export type FieldDocs = { readonly [K in AllKeys & string]: string };