小编Vla*_*nko的帖子

VS代码扩展:如何向插件添加身份验证

我想开发 VS code 的扩展。它将保存突出显示的命令并将其存储到扩展状态存储中。这部分已经准备好了:)

我现在想做的是尝试了解是否可以将这些命令存储在现有后端的 VS 代码状态之上所以,我需要以某种方式构建一些身份验证逻辑

有没有办法将身份验证过程构建到扩展中?

visual-studio-code vscode-extensions

5
推荐指数
1
解决办法
2222
查看次数

带有 jsPDF 模块的 Angular 9:类型“typeof jsPDF”没有构造签名

有问题 jsPDF 的 Angular 9 模块(已安装的类型 + 包本身)

当做 ng serve 时,它​​工作 当做 ng build --prod 时,它有错误

ERROR in src/app/xxx/xxxx.componentomponent.ts:52:27 - error TS2351: This expression is not constructable.
  Type 'typeof jsPDF' has no construct signatures.

52       let pdf = new jsPDF('p', 'mm', 'a4');
                             ~~~~~

  src/app/xxx/xxxx.component.ts:7:1
    7 import * as jsPDF from 'jspdf';
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import …
Run Code Online (Sandbox Code Playgroud)

jspdf typescript angular angular9 angular-cli-v9

4
推荐指数
2
解决办法
1万
查看次数