Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Docs don't match types

未关闭
#3,790 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
45/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
nodejs, typescript

调研方向

将 npm 包 OAuth2 的文档与当前的 TypeScript 类型进行比较,并验证 issue 中引用的 troubleshooting 和 FAQ URL。更新 constructor 示例和失效链接,使文档与受支持的配置一致,并确保链接能够成功解析。

由索引模型根据 Issue 内容生成。

描述

size: s type: docs
Please make sure you have searched for information in the following guides.
Documentation Request

The npm docs at: https://www.npmjs.com/package/googleapis#oauth2-client

say to use the googleapi oauth client like:

const oauth2Client = new google.auth.OAuth2( YOUR_CLIENT_ID, YOUR_CLIENT_SECRET, YOUR_REDIRECT_URL );

But in VS code that is marked as deprecated in the types, in favor of using a config object. Maybe the docs on npm need to be updated?

Also, your checklist before submitting an issue says to go to this url:

https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/troubleshooting

But when I went there I got a 404.

I also got a 404 for this FAQ link:

https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/faq

At this URL they show using the config object. Maybe link to this from the npm docs?

https://github.com/googleapis/google-auth-library-nodejs

主要语言
TypeScript
星标
12.3k
派生
2k
平均合并
1 天 19 小时
30 天内合并 PR
21

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

googleapis/google-api-nodejs-client 的其他 Issue

查看 googleapis/google-api-nodejs-client 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。