TencentCloudBase / tcb-admin-node

Tencent Cloud Base on Node.js
106 stars 11 forks source link

无法 通过yarn add @types/tcb-admin-node安装类型声明模块 #13

Closed LuHugo closed 4 years ago

LuHugo commented 4 years ago

使用Typescript开发,引入tcb-admin-node模块,提示无法找到模块。需要通过require导入或自己在.d.ts文件中声明,这样太麻烦了,既然模块中自带了类型文件,为什么不单独发布?

Mrjing commented 4 years ago

可以试用下@cloudbase/node-sdk这个包,这个包对typescript支持的更好些,且功能和tcb-admin-node一致的

------------------ 原始邮件 ------------------ 发件人: "Hugo"<notifications@github.com>; 发送时间: 2020年2月9日(星期天) 晚上8:37 收件人: "TencentCloudBase/tcb-admin-node"<tcb-admin-node@noreply.github.com>; 抄送: "Subscribed"<subscribed@noreply.github.com>; 主题: [TencentCloudBase/tcb-admin-node] 无法 通过yarn add @types/tcb-admin-node (#13)

使用Typescript开发,引入tcb-admin-node模块,提示无法找到模块。需要通过require导入或自己在.d.ts文件中声明,这样太麻烦了,既然模块中自带了类型文件,为什么不单独发布?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LuHugo commented 4 years ago

@Mrjing @cloudbase/node-sdk未来是不是要取代tcb-admin-node?

Mrjing commented 4 years ago

是的,未来的新特性会在@cloudbase/node-sdk支持了,tcb-admin-node只做维护

------------------ 原始邮件 ------------------ 发件人: "Hugo"<notifications@github.com>; 发送时间: 2020年2月9日(星期天) 晚上8:46 收件人: "TencentCloudBase/tcb-admin-node"<tcb-admin-node@noreply.github.com>; 抄送: "黄静远"<837317210@qq.com>; "Mention"<mention@noreply.github.com>; 主题: Re: [TencentCloudBase/tcb-admin-node] 无法 通过yarn add @types/tcb-admin-node安装类型声明模块 (#13)

@Mrjing @cloudbase/node-sdk未来是不是要取代tcb-admin-node?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

LuHugo commented 4 years ago

了解