TypeScript Snippets
Types, interfaces, generics, utility types and type guards.
Type a prefix and press Tab. 11 snippets.
| Language | Prefix | What it inserts |
|---|---|---|
| TypeScript | int |
An interface |
| TypeScript | ty |
A type alias |
| TypeScript | un |
A union |
| TypeScript | enum |
An enum |
| TypeScript | gfn |
A generic function |
| TypeScript | guard |
A type guard |
| TypeScript | rec |
Record type |
| TypeScript | pick |
Pick fields |
| TypeScript | aat |
A typed async function |
| TypeScript | zod |
A Zod object schema |
| TypeScript | cls |
A class |
This extension runs no code and asks for no permissions.