-
I'm using node-ssh with Typescript and the compilation fails with the following error:
```bash
node_modules/node-ssh/lib/typings/index.d.ts:2:8 - error TS1192: Module '"/var/www/tedev1/node_module…
-
Just wondering if this project is still being maintained?
(It has not received any commits in almost 18 months, and a few recent pull requests appear to have been closed by their authors without an…
-
> 数组展平即将一个多维数组平铺成一维数组
## toString()
```js
// 都是数字
const arr = [1, 2, [3, 4, [5, 6, 7, [8]]]]
console.log(arr.toString()) // 1,2,3,4,5,6,7,8
// 然后就可以将字符串转成数组
console.log(arr.toString().split…
lxinr updated
3 years ago
-
Because `opaque.d.ts` is not module file, unique symbol tag of the `Opaque` type is exposed
Also, the typescript compiler does not regard following as an error.
```ts
import {Opaque} from …
-
## ES6 等等
![](https://user-gold-cdn.xitu.io/2020/3/15/170de4be1318de5e?imageView2/0/w/1280/h/960/format/webp/ignore-error/1)
**ES6**是ECMA为JavaScript制定的第6个标准版本,相关历史可查看此章节《ES6-ECMAScript6简介》。
标准委…
-
The module [`it-pair`](https://www.skypack.dev/view/it-pair) imports fine with Skypack by itself. But when we try to import a package export file `/duplex`, it fails with the error `Relative import pa…
-
# tsc All In One
> tsconfig.json
```sh
$ tsc --init
```
https://www.typescriptlang.org/tsconfig
![image](https://user-images.githubusercontent.com/7291672/59003936-6f6eca80-884a-11…
-
**Expected behavior:**
successfully compiled typescript
**Actual behavior:**
**Your gulpfile:**
```js
var gulp = require('gulp');
var less = require('gulp-less');
var ts = require('gulp…
-
-
**Update 2023-02-07:** A port for Deno is available at https://deno.land/x/comlink, when the `npm:` protocol is mature enough I will make it compatible with both Node and Deno (and Bun). My intention …