一键导入
typescript
TypeScript guidelines. Use when editing or reviewing `**/*.ts` and `**/*.tsx` files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
TypeScript guidelines. Use when editing or reviewing `**/*.ts` and `**/*.tsx` files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Code guidelines for Cloudflare Worker implementations. Use when editing, reviewing, or executing a Cloudflare Worker; e.g. D1 queries, handlers, Wrangler commands, and Wrangler configurations.
Code guidelines for TSX files. Use when editing or reviewing `.tsx` files, i.e. TypeScript React components.
Code guidelines for JavaScript/TypeScript end-to-end, integration, and unit tests. Use when authoring or reviewing `**/*.test.ts` and `**/*.test.tsx` files, e.g. Playwright, Vitest.
Use this skill to create a new design system.
| name | typescript |
| description | TypeScript guidelines. Use when editing or reviewing `**/*.ts` and `**/*.tsx` files. |
| license | MIT |
| user-invocable | false |
| metadata | {"author":"quisi.do"} |
Follow functional programming principles where possible.
Prefer immutable data (const, readonly).
Support exactOptionalPropertyTypes by explicitly including | undefined in
optional property definitions, e.g. readonly foo?: string | undefined.
Use interfaces for data structures and type definitions.
When a function only takes one parameter and that parameter is an untyped
object, name that parameter's interface Options.
interface Options { /* ... */ }
export default function myFn({ /* ... */ }: Options): void {}
I (e.g., use User instead of IUser)
unless the name is already taken. For example, if a React component is
already named User, then fallback to IUser for the interface.