@fullstackcraftllc/codevideo-types

中文文档
2.8.1发布于 2026/11/11MITTypeScriptESM + CJS近 30 天下载 2229

TypeScript types for the CodeVideo ecosystem.

原始使用文档
文档目录4 节
  1. Theory
  2. Domains
  3. IAction
  4. Project Snapshots

codevideo-types

Experimental renderer metadata is optional: RenderMode is realtime or deterministic; ICodeVideoIDEProps accepts renderMode and renderSeed. ICodeVideoManifest additionally accepts renderWorkers. Omitted mode remains realtime. IAudioItem can carry actionIndex, assetId and measured durationMs for offline speech timing; existing text/MP3 URL producers remain compatible.

NPM Version

TypeScript types used around the CodeVideo ecosystem.

Theory

A software course is represented by the top level interface ICourse. A course is made up of an array of ILessons, which are made up of a series of IActions. Each of ICourse, ILesson, and IAction also have additional metadata properties.

Read more about this in our whitepaper.

Domains

There are 5 domains to a codevideo action: the file explorer, the editor, the terminal, the mouse, and the author. Each of these domains has its own set of actions that can be performed with it, prefixed by file-explorer-, editor-, terminal-, mouse-, and author- respectively.

IAction

IAction - The bread and butter of all things CodeVideo. An action is defined by a name and a value and can perform all possible actions in the CodeVideo ecosystem. Examples include type-editor, type-terminal, arrow-up, enter, etc.

Action Names

A convenience array of all possible action names is available at AllActionStrings.

Action Values

Action values are always strings, but typically represent a number when they are repeatable actions such as editor-arrow-up, editor-enter, etc. These are catalogued in RepeatableActionNames.

Project Snapshots

A project snapshot is a snapshot of the state of a project at a given point in time. It is represented by the IProjectSnapshot interface. Any instance of IProjectSnapshot can be derived by evaluating the actions in the project up to the point in time that the snapshot was taken.

版本与发布记录

@fullstackcraftllc/codevideo-types 共发布 142 个版本,首次发布于 2024/03/13;过去 12 个月发布了 10 个版本。

版本发布日期距今
2.8.1latest2026/11/115 天前
2.8.02026/11/106 天前
2.7.02026/11/096 天前
2.6.22026/11/0114 天前
2.6.12026/11/0115 天前
2.6.02026/10/3016 天前

关于 @fullstackcraftllc/codevideo-types 的常见问题

@fullstackcraftllc/codevideo-types 是什么?

TypeScript types for the CodeVideo ecosystem.

如何安装 @fullstackcraftllc/codevideo-types?

在项目目录运行 npm install @fullstackcraftllc/codevideo-types,或使用 pnpm add / yarn add / bun add。

@fullstackcraftllc/codevideo-types 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@fullstackcraftllc/codevideo-types 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@fullstackcraftllc/codevideo-types 可以商用吗?

@fullstackcraftllc/codevideo-types 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@fullstackcraftllc/codevideo-types 的下载量有多少?

根据 npm 官方下载统计,@fullstackcraftllc/codevideo-types 在 2026/10/16 – 2026/11/14 这 30 天内被下载 2,229 次,日均约 74 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@fullstackcraftllc/codevideo-types 还在维护吗?

最新版本 2.8.1 发布于 2026/11/11(5 天前);至今共发布 142 个版本,其中过去 12 个月发布了 10 个;首次发布于 2024/03/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。