# @frontity/type-declarations 中文文档

规范地址：https://npmcn.com/package/%40frontity/type-declarations/

版本：1\.1\.1
npm 元数据更新时间：2026-11-04T06:17:18.926Z
中文译文更新时间：2026-11-15T15:06:11.638Z
软件包许可：Apache-2\.0

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40frontity/type-declarations
原文对照：https://npmcn.com/package/%40frontity/type-declarations/?lang=original
项目主页：https://frontity.org/
源码仓库：https://github.com/frontity/frontity

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：4.5 kB，5 个文件
- 模块格式：CommonJS
- TypeScript 类型：包内自带
- 运行依赖：0 个
- 首次发布：2019-10-02T20:34:51.730Z
- 最新版本发布：2021-01-28T07:08:49.391Z
- 近 30 天下载量：4787（2026-10-16 至 2026-11-14，npm 官方下载统计）
- 已发布版本数：3（近 12 个月 0 个）

## 中文简介

不同前沿性 API 的类型声明

## 安装

```sh
npm install @frontity/type-declarations
```

也可以使用：`pnpm add @frontity/type-declarations`、`yarn add @frontity/type-declarations`、`bun add @frontity/type-declarations`

## README

# `@frontity/type-declarations`

此软件包并非要单独安装 。 它包含一些在Frontity项目中自动导入的类别声明.

### 开放源码社区

[![Community Forum Topics](https://img.shields.io/discourse/topics?color=blue&label=community%20forum&server=https%3A%2F%2Fcommunity.frontity.org%2F)](https://community.frontity.org/) [![Twitter: frontity](https://img.shields.io/twitter/follow/frontity.svg?style=social)](https://twitter.com/frontity) ![Frontity Github Stars](https://img.shields.io/github/stars/frontity/frontity?style=social)

Frontity有多个不同的渠道可供您使用,您可以通过这些渠道了解更多有关项目的信息,加入讨论,并参与其中:

-   **📖 [文档](https://docs.frontity.org/)数字 :** 我们的主要文献资源 ——这里是学习 如何建造惊人的网站 与前沿.

-   **👨‍👩‍👧‍👦 [社区论坛](https://community.frontity.org/)数字 :** 加入Frontity的论坛并提问,分享你的知识,提供反馈并会见其他酷儿Frontity的人. 我们也很想知道你和Frontity一起在建什么 所以请过来一下 [论坛](https://community.frontity.org/) 告诉我们你的项目.
-   **\* 贡献:** 前线用途 [GitHub 图像](https://github.com/frontity/frontity) 用于错误和拉动请求。 看我们的 [捐款](https://npmcn.com/package/CONTRIBUTING.md/) ,以查找如何帮助开发Frontity,或改进此文档.
-   **社交媒体**:与其他前沿用户互动. 联系前线小组 [微博](https://twitter.com/frontity)在你的推特上提到我们 关于Frontity 和你正在通过使用 **`@frontity`**。 。 。 .
-   💌 **通讯:** 您是否想要收到有关Frontity的最新消息, 并在框架更新后立即发现? 订阅我们的 [通讯](https://frontity.org/newsletter/)。 。 。 .

### 参与其中

[![GitHub issues by-label](https://img.shields.io/github/issues/frontity/frontity/good%20first%20issue)](https://github.com/frontity/frontity/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)

有关于Frontity的问题或反馈吗? 我们很想听到你的声音 [社区论坛](https://community.frontity.org/)。 。 。 .

前线也欢迎捐款。 支持这个项目的方法很多! 如果你不知道从哪里开始,那么这个指南可能会有帮助: [如何贡献?](https://docs.frontity.org/contributing/how-to-contribute)。 。 。 .

如果您愿意开始给密码投稿 请打开一个调取请求 [_头等大事_](https://github.com/frontity/frontity/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)。 。 。 .

## 常见问题

### @frontity/type-declarations 是什么？

不同前沿性 API 的类型声明

### 如何安装 @frontity/type-declarations？

在项目目录运行 npm install @frontity/type-declarations，或使用 pnpm add / yarn add / bun add。

### @frontity/type-declarations 支持 TypeScript 吗？

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

### @frontity/type-declarations 支持 ESM 还是 CommonJS？

以 CommonJS 形式发布，可以直接 require\(\)；在 ES Module 项目中也可以用 import 引入（Node\.js 会把 module\.exports 作为默认导出）。

### @frontity/type-declarations 可以商用吗？

@frontity/type-declarations 使用 Apache-2\.0 许可。宽松许可：允许商业使用、修改和再分发，并附带明确的专利授权；分发时需保留许可与 NOTICE 文件，修改过的文件要注明改动。以上为概括，不构成法律意见，请以许可原文为准。

### @frontity/type-declarations 的下载量有多少？

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

### @frontity/type-declarations 还在维护吗？

最新版本 1\.1\.1 发布于 2021/01/28（5 年前）；至今共发布 3 个版本，其中过去 12 个月发布了 0 个；首次发布于 2019/10/03。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

