Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
为 Typescript、es6 和 Webpack 2 配置 Jest
在我的 tsconfig 中 我当前将模块 compilerOption 属性设置为 es6 但是 当我运行 Jest 时 我收到以下错误 Test suite failed to run Object
ReactJS
typescript
ECMAScript6
jestjs
TypeScript 中的自定义错误类
我想在 TypeScript 中创建自己的错误类 扩展核心Error提供更好的错误处理和定制报告 例如 我想创建一个HttpRequestError带有 url response 和 body 的类传递到其构造函数中 构造函数响应为HTTP
inheritance
errorhandling
typescript
无法在 Typescript 中导出常量
有人能帮助我吗 我有 2 个文件 main ts 和 hi ts hi ts export const hello dd main ts import hello from hi class A public sayHello consol
typescript
import
export
constants
Angular:vscode 中预期的表达式
当我保存文件时 vscode 自动滚动到该随机行并指向 给出这个错误 我只是检查是否dateToComplete is null因为有时需要 我是否需要禁用 ts 的某些新功能 if this editMode this dateToCom
angular
typescript
步骤向导形式
我正在使用角度动态表单进行角度应用程序 我需要将表单分成两部分 其中我有输入字段firstname and lastname在第一页 然后单击下一个按钮 其中的子项email and dropdown需要加载 Html
javascript
angular
Forms
typescript
angularreactiveforms
你能在 TypeScript 中创建嵌套类吗?
有没有办法在 TypeScript 中嵌套类 例如 我想像这样使用它们 var foo new Foo var bar new Foo Bar 在现代 TypeScript 中 我们有类表达式 您可以使用它来创建嵌套类 例如 您可以执行以下
javascript
typescript
如何在React typescript中读取xml文件(toolsbox.xml)
我无法在 tsx 文件中导入 xml 文件 但在 jsx 文件中我可以访问该 xml 文件 您需要为打字稿定义一个模块来评估 否则它将尝试寻找类似的东西toolbox xml ts 名为 XML d ts 的文件中的一些内容 为此放置在 s
ReactJS
xml
typescript
blockly
在 Angular2 应用程序中运行 ng 服务时出现错误“无法读取未定义的属性‘长度’”
使用 angular cli 命令 ng serve 运行 angular2 应用程序时 我遇到以下问题 电子邮件受保护 cdn cgi l email protection启动 C Users padmavathi Downloads p
nodejs
angular
typescript
Angularcli
运行时未定义枚举类型
我遇到一个问题 Typescript 编译器成功编译了我的代码 但运行时却给出了未定义的类型错误 在我的应用程序中我创建了一个types ts文件 其中一些内容在多个其他 ts 文件之间共享 它包含一个字符串枚举 例如 enum MyEnu
typescript
Ionic 2 - Angular 2 http 标头未随请求一起发送
我正在使用 Ionic 的最新测试版本 并且我已经为我的 api 服务器完成了 http post 方法 但标头不会随请求一起发送 我使用的代码如下 Ionic 版本 Beta 8 和 Angular 版本 rc 3 import Page
http
typescript
angular
ionic2
类型“Buffer”不可分配给类型“BlobPart”
blobType string application vnd openxmlformats officedocument spreadsheetml sheet charset UTF 8 cols Column1 Column2 Col
javascript
typescript
类型“未定义”不可分配给类型“从不”
interface A name string age number var a A name age 23 var result A Object keys a as Array
typescript
TypeDoc 抱怨“找不到模块”
我有一个基于 Typsecript 的反应应用程序 它工作得很好 但我想添加 TypeDoc 想想 Typescript 的 JSDoc 安装后 我从命令行运行它 在测试时仅处理单个文件 typedoc module commonjs js
ReactJS
typescript
Documentation
typedoc
将 MomentJS 与 TypeScript 结合使用 - moment() 有什么类型?
我目前正在将我的项目从 ES5 转换为 ES6 但我遇到了 MomentJS 的问题 version 2 18 1 问题是我有一些变量是 Moment 对象 但我无法对它们调用 moment 一个例子 import as moment fr
typescript
Momentjs
Angular 9平台引导多个模块——在页面上运行多个应用程序
我正在开发一个需要在页面上运行两个应用程序的项目 就像是
html
angular
typescript
Bootstrap4
Typescript 类型转换对象因此特定的必需键在类型中不再是可选的?
假设你有一个对象类型 type Person name string color string address string 但是 您想将该类型更改为以下类型 您知道名称和颜色将存在 type Person name string colo
javascript
typescript
对打字稿文件语法错误进行玩笑测试:“接口是严格模式下的保留字”
我的分行 https github com Futuratum moonholdings io tree JestTests https github com Futuratum moonholdings io tree JestTests
javascript
ReactJS
typescript
jestjs
Nextjs
TS-2304 错误 - 在“.ts”文件中导入“jquery”时无法在 TypeScript 中找到名称“Iterable”
我正在使用 Visual Studio Code 作为编辑器开发 TypeScript 2 4 版本 我使用以下命令通过 NPM 安装了 jQuery npm install save types jquery 然后我下载了源码jquery
jQuery
nodejs
typescript
npm
typescript 扩展数组原型
我只想使用一种方法来扩展 Array 原型 将字符串数组的每个项目转换为大写 这是我的第一种方法 Array prototype toUppercase gt map String toUppercase 为什么不工作 多谢 需要先声明该成
Arrays
typescript
prototype
为什么 TypeScript TypeMemberList 中的分隔符是分号而不是逗号?
这是一个打字稿界面 interface A l x string y number 但这 类似的事情 会产生错误 interface A l x string y number gt Error expected 在规范第 37 页上 ht
typescript
grammar
specifications
«
1 ...
94
95
96
97
98
99
100