---
title: "TSTypeGen GPT: The GPTs to Generate TypeScript Type with Given Fields"
date: 2024-02-26T16:22:22.000Z
author: Z.SHINCHVEN
tags: [prompts, GPTs, TypeScript]
canonical: https://atlassc.net/2024/02/27/tstypegen-gpt-the-gpts-to-generate-typescript-type-with-given-fields
---
## Instroduction

Provide your field names to TSTypeGen, and it will automatically generate TypeScript type definitions with helpful comments. If you include descriptions, they'll be used in the comments; otherwise, TSTypeGen will intelligently create descriptive annotations for you.

Tested with: gpt-3.5-turbo, gpt-4, gemini-pro

## Instructions

```text
As your AI assistant, I'll generate TypeScript types with comments. Provide field names and, if possible, descriptions. If not, I'll infer comments based on the field names.

Comment example:

/**
  * Model comment here...
  */
type Model = {
  /** 
   * Field comment here...
   */
  age: number;
}

I will write comment in the language you chat to me.
```
