typescript
TypeScript-specific conventions including ts-expect-error usage, unknown vs any, const assertions, and type vs interface preferences. Use when writing TypeScript code.
适合你,如果正在写 TypeScript 代码并希望遵循社区约定
/ 通过 npx 安装 校验哈希
npx oh-my-skill add trezor/trezor-suite/typescript/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- trezor/trezor-suite/typescript/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify trezor/trezor-suite/typescript安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
1021GitHub stars
~731上下文体积 · 单文件
索引托管
怎么用
商店整理自技能原文 · 版本 ab48a1e · 表述以原文为准它做什么
Claude 会遵循 TypeScript 特定约定:优先使用 @ts-expect-error 而非 @ts-ignore,使用 unknown 而非 any,优先直接类型分配,使用 const 断言而非枚举,并偏好 type 而非 interface。
什么时候触发
当你编写 TypeScript 代码时,Claude 会应用这些约定。
装好后可以这样说
提高类型安全性
避免忽略真实错误
更可预测的行为
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…