Complete worked example
typescript
interface Summary { readonly id: string; title: string; subtitle?: string }
const stored = { id: "j1", title: "Developer", company: "Acme" };
const summary: Summary = stored;- Reasoning
- A larger stored object satisfies the smaller structural contract; the annotation does not strip company.