@giosg/types

中文文档
12.1.23发布于 2026/10/29MITTypeScriptESM + CJS零依赖近 30 天下载 2933

TypeScript interfaces for GiosgAPI

原始使用文档

giosg types

This is a collection of interfaces used in giosg services.

How to use

npm install @giosg/types

Development and publishing

Publishing

Before publishing, remember to consider the effects your changes have for our users. See semantic versioning.

For publishing, you need access to Giosg organization in npm. You can request that from one of the organization admins or request them to publish the package.

  1. Update CHANGELOG.md
  2. Run npm run bump if you have not updated the version number manually, and commit.
  3. Create pull request.
  4. Request a review from another experienced developer.
  5. Merge the pull request after approval and passed tests.
  6. Pull master locally.
  7. Login to npm with npm login --scope=giosg. You will be prompted for credentials.
  8. Publish the package with: npm publish --access=public. --access=public flag is mandatory because organization packages default to restricted.

Changelog

Remember to maintain change log: See: CHANGELOG.md

版本与发布记录

@giosg/types 共发布 129 个版本,首次发布于 2019/08/05;过去 12 个月发布了 17 个版本。

版本发布日期距今
12.1.23latest2026/10/2918 天前
12.1.222026/10/2719 天前
12.1.212026/10/2720 天前
12.1.202026/10/121 个月前
12.1.192026/09/231 个月前
12.1.182026/09/082 个月前

关于 @giosg/types 的常见问题

@giosg/types 是什么?

TypeScript interfaces for GiosgAPI

如何安装 @giosg/types?

在项目目录运行 npm install @giosg/types,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:typescript(^4.0.0 || ^5.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@giosg/types 支持 TypeScript 吗?

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

@giosg/types 支持 ESM 还是 CommonJS?

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

@giosg/types 可以商用吗?

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

@giosg/types 的下载量有多少?

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

@giosg/types 还在维护吗?

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