Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
无法从函数内部访问数组变量
我对 TypeScript 和量角器非常陌生 希望将从下拉列表中提取的所有值放入数组中 以便我可以从另一个页面验证它 export class AdditionalCostPage extends BasePage getAllUsageC
typescript
protractor
在 Typescript 2.0 中搜索类型定义的规范方法
自从 Typescript 2 0 取代打字以来 我们应该使用 https blogs msdn microsoft com typescript 2016 06 15 the future of declaration files npm
typescript
npm
typescript20
Typescript 中的顶级等待和导入
我正在研究 Typescript 并遇到问题 我想使用import和顶级await但目前 我一次只能使用一个 这是我的配置tsconfig json这允许我使用导入 target ESNext module ESNext 这个允许我使用顶级
nodejs
typescript
toplevelawait
当我添加 orderBy 应用程序在 firestore 中不起作用时
onSnapshot 中未捕获的错误 错误 查询需要索引 你 可以在 new FirestoreError index cjs js 352 处创建它 在 JsonProtoSerializer push node modules fire
angular
typescript
firebase
googlecloudfirestore
您似乎不依赖于“@angular/core”。打字稿
我尝试在 npm start 运行命令 但收到消息 您似乎不依赖于 angular core 这是一个错误 可能是什么原因 正如它在控制台中所写 npm angular core v 它得到 5 4 2 我的package json dep
nodejs
angular
typescript
npm
e2etesting
如何在 redux-toolkit 中正确使用 PayloadAction 和元类型?
简化示例 import createSlice PayloadAction from reduxjs toolkit type Cake flavor string size S M L const initialState all Cak
ReactJS
typescript
redux
reactredux
reduxtoolkit
未捕获的错误:模块“AppModule”导入了意外的指令“MyComboBox”。请添加@NgModule注释
我有一个自定义组件 MyComboBox 其中有kendo combobox inside 当我使用我的核心模块时 webpack编译成功结束 但 chrome 抛出以下错误 Uncaught Error Unexpected direct
angular
typescript
WEBPACK
TypeScript:使用调用签名和构造函数签名实现接口
是否可以创建一个实现以下接口的对象 interface I string new any 我看到可以实现一个具有调用签名和这个问题的一些字段的接口 使用裸函数签名和其他字段实现 TypeScript 接口 https stackoverfl
typescript
types
验证来自两个不同 URL 的 Keycloak 令牌
我有一个Docker compose具有后端和前端组件的基于系统 后端写的是Python Flask并在多个 docker 容器中运行 前端编写为TypeScript with Angular 前端通过Restful API与后端进行通信
angular
typescript
Docker
Nginx
Keycloak
如何限制打字稿中的枚举字符串值
我有具有可能的行动价值的类型 type PersistentAction park retry skip stop 然后我想用动作定义枚举 enum persistentActions PARK park RETRY retry SKIP
typescript
enums
无法访问我的控制器/构造函数的输入
我有一个简单的 Angular 2 组件 Input 我将其绑定到模板 模板显示输入数据 但我无法从构造函数访问它 import Component View bootstrap Input from angular2 angular2 i
angular
typescript
Material UI v1.0.0 如何重写Stepper类来设置图标大小
我现在正在迁移到新版本的 Material UI 我不得不说我有点困惑如何覆盖类 我需要使用Stepper https material ui next com demos stepper 使用替代标签 它对我有用 我能够覆盖根类来设置透明
css
ReactJS
typescript
materialui
使用 Angular HTTP Observable 的轮询 API
在我的组件 html 中 我使用 asyncPipe 来订阅此 http 服务 该服务将 json 响应对象映射到类实例数组 这一切都很好 但我希望 http 服务每隔几秒轮询一次 我已经尝试了很多东西 比如间隔 但目前 RXJS 似乎有点
angular
typescript
rxjs
angularhttpclient
如何向 ionic 2 警报添加禁用按钮
我创建了一个 ionic2 警报 我必须根据条件禁用按钮 这是我的代码的简单结构 import AlertController from ionic angular export class MyPage constructor publi
javascript
Button
typescript
ionic2
ALERT
如何使用我自己的声明文件解决“无法找到模块的声明文件”错误?
我有一个测试项目 正在其中测试类型定义文件 该项目有一个文件名为index ts看起来像这样 import i18nFu require gettext js The 获取文本 js包是使用 Node js 安装的 如下所示 npm ins
typescript
dts
React 测试库:测试属性/prop
我正在使用 TypeScript 编写一个 React 应用程序 我使用material ui作为我的组件 使用react testing library作为我的单元测试 我正在为 Material ui 的 Grid 组件编写一个包装器
ReactJS
typescript
unittesting
jestjs
reacttestinglibrary
toastr.js 如何在 Aurelia 和 Typescript 中工作?
我似乎无法让这些一起工作 我正在使用 Aurelia CLI 并以类似的方式成功地对其他库 如 select2 spin moment 和 numeric 进行了操作 但我似乎无法让 toastr 工作 这是我到目前为止所拥有的 首先我跑了
typescript
toastr
aurelia
比较 Observable 的前一个值与 Angular 中的下一个值
我一直在开发一个应用程序 它允许几个不同的组件更新BehaviorSubject在角度 在每个组件中 我存储前一个组件的本地副本BehaviorSubject价值 为了知道组件是否生成了被推出的新值 我计划使用 LoDash 来比较两个对象
angular
typescript
rxjs
lodash
Observable
Typescript深度替换多种类型
我将 mongodb 与 types mongodb 一起使用 这为我提供了一个很好的 FilterQuery 接口 用于我的 mogodb 查询形状文档集合 在我的域对象类中 我有一些额外的逻辑 例如将日期转换为时刻对象或将浮点数转换为
typescript
mappedtypes
conditionaltypes
后续变量声明必须具有相同的类型。变量“$”必须是“JQueryStatic”类型,但这里的类型是“cssSelectorHelper”
我有一个非常简单的文件
typescript
angular
1
2
3
4
5
6
...100
»