TypeScript Type Generator — illustrative example INPUT Infer a TypeScript draft from these samples: {"id":"A1","nickname":"Ada"} and {"id":"B2"}. Do not assume additional fields. RESULT type UserSample = { id: string; nickname?: string; }; The absent nickname makes it optional in this sample-based draft. The samples do not establish whether null or other fields are allowed by the actual contract. REVIEW Type inference from a small sample cannot establish every possible field. Identify optionality and uncertainty rather than overfitting the sample. This is a teaching example, not a live execution record.