Home › Resources › AI Skills › migrate-to-shoehorn Skill 下载|TypeScript MIT
migrate-to-shoehorn Skill 下载|TypeScript MIT
Apps NEW

migrate-to-shoehorn Skill 下载|TypeScript MIT

Matt Pocock 出品 · MIT

Windows macOS Linux Open source v2026-12-01 commit fe3b143d
Updated 2026-12-03 · Total downloads 0
Downloads Sign in to the corresponding cloud drive account to save or download
Quark Drive
夸克网盘

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

Detailed description is currently available in Chinese only.

Details

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:只迁移测试文件

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

Related keywords

We only index publicly available resource information. All rights belong to the original authors; please verify licensing before use. Contact us for takedown requests.

Similar resources

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

Agrici Daniel 出品 · MIT

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

Agrici Daniel 出品 · MIT

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

Agrici Daniel 出品 · MIT

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

Agrici Daniel 出品 · MIT

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

Agrici Daniel 出品 · MIT

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

New arrivals

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

Agrici Daniel 出品 · MIT

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

Agrici Daniel 出品 · MIT

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

Agrici Daniel 出品 · MIT

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

Popular

Prisma v7 升级指南 Skill 下载|Prisma 升级到 v7 迁移指南 MIT NEW
Apps
Prisma v7 升级指南 Skill 下载|Prisma 升级到 v7 迁移指南 MIT

Prisma 官方 Prisma v7 升级指南,Prisma 升级到 v7 迁移指南

Windows macOS Linux v2026-11-09 commit a6f19295
11 2026-11-26
Prisma CLI 工作流 Skill 下载|Prisma CLI 命令与工作流 MIT NEW
Apps
Prisma CLI 工作流 Skill 下载|Prisma CLI 命令与工作流 MIT

Prisma 官方 Prisma CLI 工作流,Prisma CLI 命令与工作流

Windows macOS Linux v2026-11-09 commit a6f19295
7 2026-11-26

← Back to resources · AI Skills · Popular tools · AI Directory