我想开发 VS code 的扩展。它将保存突出显示的命令并将其存储到扩展状态存储中。这部分已经准备好了:)
我现在想做的是尝试了解是否可以将这些命令存储在现有后端的 VS 代码状态之上所以,我需要以某种方式构建一些身份验证逻辑
有没有办法将身份验证过程构建到扩展中?
有问题 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)