Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.21 KB

File metadata and controls

47 lines (32 loc) · 1.21 KB

⎐ AI Driven Dev - "TypeScript" Prompts (:ts)

A list of TypeScript related prompts that I use quite often in my IDE.

🆎 Types

Create a Type from Object :tsTypeCreate

Create a TypeScript Type for this Object using Type keyword.

Extract type :tsTypeExtract

Extract the type of the variable and create a new type for it.

📊 Data

Generate fake data from code :tsDataFakeDataGenerate

From this type, generate fake data for testing purposes. The data should be in the same format as the original data, but with fake values.

Data:
[[Data]]

Type:
[[Type]]

✅ Validation

Create a Zod Schema from this Type :tsValidationZodGenerate

Create zod schema for this type.