首頁 › 資源推薦 › AI 技能 › migrate-to-shoehorn Skill 下载|TypeScript MIT
migrate-to-shoehorn Skill 下载|TypeScript MIT
應用 NEW

migrate-to-shoehorn Skill 下载|TypeScript MIT

Matt Pocock 出品 · MIT

Windows macOS Linux 開源 v2026-12-01 commit fe3b143d
更新時間 2026-12-03 · 下載量 0
下載方式 網盤資源需登入對應帳號後儲存或下載
夸克網盤
夸克网盘

Shoehorn 迁移 Skill,把测试文件里的 as 类型断言替换为 @total-typescript/shoehorn 的部分数据构造。

詳細介紹目前僅提供中文。

詳細介紹

Shoehorn 迁移 Skill,把测试文件里的 as 类型断言替换为 @total-typescript/shoehorn 的部分数据构造。

它能帮你做什么

  • 解释 shoehorn 的价值
  • 安装依赖
  • 大对象只取所需属性
  • as Type 改为 fromPartial()
  • as unknown as Type 改为 fromAny()
  • 场景选择
  • 迁移流程

怎么用

测试里大量用 as 造数据;需要部分测试数据时类型不完整;统一测试数据的类型写法。 安装方式:把整个 Skill 目录复制到你的 Agent skills 目录(如 ~/.claude/skills/),重启后即可调用。

关键词

TypeScript、shoehorn、fromPartial、fromAny、类型断言、测试数据

常见问题

Q:解决什么问题
A:替代测试里不安全的 as 断言

Q:两种 API 怎么选
A:部分数据用 fromPartial,任意值用 fromAny

Q:要改生产代码吗
A:只迁移测试文件

完整许可文本、署名与来源见下载包内说明文件。本资源整理自互联网公开渠道,请自行核验后再使用。

相關關鍵字

本站僅整理公開資源資訊,版權歸原作者所有;請自行確認授權範圍,如有侵權請聯絡下架。

同類推薦

seo-technical Skill 下载|抓取与索引审查 NEW
應用
seo-technical Skill 下载|抓取与索引审查

Agrici Daniel 出品 · MIT

Windows macOS Linux v2026-12-02 commit b209a097
1 2026-12-02
seo-sxo Skill 下载|搜索结果页类型分析 NEW
應用
seo-sxo Skill 下载|搜索结果页类型分析

Agrici Daniel 出品 · MIT

Windows macOS Linux v2026-12-02 commit b209a097
1 2026-12-02
seo-sitemap Skill 下载|现有站点地图分析 NEW
應用
seo-sitemap Skill 下载|现有站点地图分析

Agrici Daniel 出品 · MIT

Windows macOS Linux v2026-12-02 commit b209a097
1 2026-12-02
seo-schema Skill 下载|Schema 检测 NEW
應用
seo-schema Skill 下载|Schema 检测

Agrici Daniel 出品 · MIT

Windows macOS Linux v2026-12-02 commit b209a097
1 2026-12-02
seo-programmatic Skill 下载|批量页面规划 NEW
應用
seo-programmatic Skill 下载|批量页面规划

Agrici Daniel 出品 · MIT

Windows macOS Linux v2026-12-02 commit b209a097
1 2026-12-02

最新上架

seo-plan Skill 下载|行业模板选用 NEW
應用
seo-plan Skill 下载|行业模板选用

Agrici Daniel 出品 · MIT

Windows macOS Linux v2026-12-02 commit b209a097
1 2026-12-02
seo-page Skill 下载|单页整体审查 NEW
應用
seo-page Skill 下载|单页整体审查

Agrici Daniel 出品 · MIT

Windows macOS Linux v2026-12-02 commit b209a097
1 2026-12-02
seo-local Skill 下载|商家资料审查 NEW
應用
seo-local Skill 下载|商家资料审查

Agrici Daniel 出品 · MIT

Windows macOS Linux v2026-12-02 commit b209a097
1 2026-12-02

熱門推薦

Gemini CLI CI 工作流 Skill 下载|CI 流水线配置与排查 Apache-2.0 NEW
應用
Gemini CLI CI 工作流 Skill 下载|CI 流水线配置与排查 Apache-2.0

Google (Gemini CLI) 官方 Gemini CLI CI 工作流,CI 流水线配置与排查

Windows macOS Linux v2026-11-25 commit 60f8082b
7 2026-11-26
演示秋鸿楷 Slideqiuhong 免费商用字体包(1 个 TTF 14.23 MiB·单档毛笔楷) NEW
資源
演示秋鸿楷 Slideqiuhong 免费商用字体包(1 个 TTF 14.23 MiB·单档毛笔楷)

演示字体系列里毛笔感最重的一款:GB2312 覆盖 6763/6763、实测字形 6971 个,单档 usWeightClass 400,GSUB 实测 0 项

Windows macOS Linux Android iOS vVersion 1.000
11 2026-11-13

← 返回資源列表 · AI 技能 · 熱門工具 · AI 導航