Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
用于对象导出和类型的 def 文件
好的 我们有了一个 Node 模块string similaritywho 导出两个这样的函数 参见 https github com aceakash string similarity blob master compare strin
typescript
typescripttypings
Typescript:如何实现这种类型的递归?
我原来的问题是this 我制作了以下类型 但由于循环引用错误 它不起作用 我不知道如何解决它 type Increment
typescript
typescripttypings
recursivetype
带方括号的 Typescript 类型声明
刚刚发现以下代码片段https www typescriptlang org docs handbook advanced types html type guards and Differentiating types type Func
typescript
typescripttypings
为什么某些 Typescript 模块名称以字符串形式给出?
通常 Typescript 模块的声明如下 declare module MyModule 但有时我也看到它 declare module MyModule 我想知道将名称作为字符串给出的目的是什么 我检查了Typescript 文档并发现
typescript
syntax
module
typescripttypings
Typescript:如何合并该交集的表示(在工具提示中)?
我有一个重载的函数 interface FunctionWithOverload a 1 b 1
typescript
typescripttypings
如何在 Typescript 中输入动态大小的数组?
我想输入一个数组 其中第一个元素始终是数字 其余元素始终是字符串 并且长度至少为 1 这是我最大的努力 type MyArray number number string number string string number string
typescript
typescripttypings
创建通用 TypeScript 函数,为对象属性赋值
我想创建一个简单的函数key特定对象的和value为相应的键并将新值分配给对象 像这样的东西 interface MyObject key1 string key2 number const object MyObject key1 abc
typescript
generics
typescripttypings
如何从 github 存储库安装打字稿定义
如何为像 aurelia validatejs 这样的库安装 typescript defs 就像我所做的那样npm install aurelia validatejs save将其添加到package json and node mod
typescript
aurelia
typescripttypings
npm @types 包的类型 globalDevDependency 的等价物是什么?
我想升级一个 电子邮件受保护 项目到 tsc 2 并在流程沟中typings从我的工具链 对于常见的依赖项来说这不是问题 因为这些依赖项来自我的typings json dependencies bluebird registry npm
nodejs
typescript
types
npm
typescripttypings
使用 TypeScript 在节点应用程序中导入 JSON 文件
我真的快疯了 因为我找不到解决方案 我想要存档的是将带有配置的 JSON 文件导入到我的 TypeScript 文件中 我了解到我需要一份声明文件 所以我在我的项目中添加了一个文件 json loader d ts 我还在多个级别 根 ty
typescript
typescripttypings
如何在 TypeScript 中生成数字文字类型的增量版本?
是否可以从数字类型T获取数字类型Y其值为 T 1 type one 1 type Increment
typescript
INCREMENT
typescripttypings
TypeScript:获取超类的类型?
我想知道是否有办法在打字稿中获取扩展类的类型 class BaseClass baseProp string class SubClass extends BaseClass subProp string type someType
typescript
typescripttypings
Typescript 将所有日期从接口转换为字符串
是否可以全部改造Date类型定义从我的接口到string 因为它会自动转换为string关于 JSON 字符串化 interface Item key string value number created Date const item
typescript
typescripttypings
使用 cypress 命令验证下载文件(PDF/Word/Excel)的数据
我有一种情况 我必须使用 Cypress 命令验证下载文件的数据 文件类型 pdf Word Excel 我有被调用的服务器 API 操作的 URL 作为响应 它返回 pdf 文件 我需要使用 Cypress 命令和 Typescript
typescript
automatedtests
typescripttypings
Cypress
NPM 包无法用作 JSX 组件 - 类型错误
我在某些软件包的打字稿项目中遇到了这些奇怪的类型错误 前任 TimeAgo cannot be used as a JSX component Its instance type ReactTimeago
typescript
npm
typescripttypings
Typescript 生成带有“#private;”字段的声明 d.ts 文件
我有一个用 Typescript 编写的库 它分布在 2 个文件中 一个已编译的 ECMAScript 2015 兼容 Javascript 文件index js和一个 Typescript 声明文件index d ts 我的目标是让 Ja
javascript
typescript
typescripttypings
我可以显式导入 dom 类型吗?
按照惯例 开发人员会在全球范围内包含全局 dom 类型并在全球范围内使用它们 compilerOptions lib dom 是否可以显式使用 dom 类型 就像是 import MessagePort HTMLElement from d
typescript
typescripttypings
如何让 TypeScript 引擎允许在 JSX 中自定义 HTML 属性?
我猜想其中的 TypeScript 引擎视觉工作室代码已收到更新 现在第一次抱怨我在 HTML 元素上预先存在的自定义道具无效 这是一个 Babel React JSX 项目 没有任何 TypeScript div div 注意 它们 技术
ReactJS
typescript
typescripttypings
无法在 Angular 2 TypeScript 应用程序中找到 Typings.d.ts 并声明模块
我是 Typescript 和 Angular 2 的新手 我需要安装 npm 依赖项并在我的 Angular 2 应用程序中使用它 依赖关系是https www npmjs com package ng2 stomp service 我已
angular
typescript
typescripttypings
类型的打字稿扩展运算符[重复]
这个问题在这里已经有答案了 我正在尝试定义一种类型 该类型获取函数类型作为泛型参数 并返回一个与输入函数类型相同的函数类型 只是它最后还有一个参数 type AugmentParam
typescript
typescripttypings
typescriptgenerics
«
1
2
3
4
5
6
7
»