·ecmascript-over-typescript-features
</>

ecmascript-over-typescript-features

marius-townhouse/effective-typescript-skills

在 TypeScript 和 ECMAScript 功能之间进行选择时使用。在编写可移植代码时使用。在考虑枚举或命名空间时使用。当针对多个 JavaScript 环境时使用。编写库代码时使用。

2安装·0热度·@marius-townhouse

安装

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill ecmascript-over-typescript-features

SKILL.md

TypeScript includes features like enum and namespace that are specific to TypeScript and don't exist in JavaScript. Prefer standard ECMAScript features when possible - they're more portable, better understood by the JavaScript ecosystem, and won't lock you into TypeScript-specific patterns.

This doesn't mean avoid TypeScript entirely - use its type system fully. But for runtime features, prefer standard JavaScript.

Prefer standard ECMAScript features over TypeScript-specific runtime features. Use TypeScript for types, JavaScript for runtime behavior.

在 TypeScript 和 ECMAScript 功能之间进行选择时使用。在编写可移植代码时使用。在考虑枚举或命名空间时使用。当针对多个 JavaScript 环境时使用。编写库代码时使用。 来源:marius-townhouse/effective-typescript-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill ecmascript-over-typescript-features
分类
</>开发工具
认证
收录时间
2026-02-05
更新时间
2026-02-18

快速解答

什么是 ecmascript-over-typescript-features?

在 TypeScript 和 ECMAScript 功能之间进行选择时使用。在编写可移植代码时使用。在考虑枚举或命名空间时使用。当针对多个 JavaScript 环境时使用。编写库代码时使用。 来源:marius-townhouse/effective-typescript-skills。

如何安装 ecmascript-over-typescript-features?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill ecmascript-over-typescript-features 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/marius-townhouse/effective-typescript-skills