浏览代码

Adds isolatedModules to tsconfig

main
Eric Amodio 4 年前
父节点
当前提交
1d97e38796
共有 2 个文件被更改,包括 1 次插入13 次删除
  1. +0
    -13
      src/system/asyncIterable.ts
  2. +1
    -0
      tsconfig.json

+ 0
- 13
src/system/asyncIterable.ts 查看文件

@ -1,13 +0,0 @@
// 'use strict';
// // Polyfill for asyncIterator
// (Symbol as any).asyncIterator = Symbol.asyncIterator || Symbol.for('Symbol.asyncIterator');
// export namespace AsyncIterables {
// export async function* filterMap<T, TMapped>(source: Iterable<T>, predicateMapper: (item: T) => Promise<TMapped | null | undefined>): AsyncIterator<TMapped> {
// for (const item of source) {
// const mapped = await predicateMapper(item);
// if (mapped != null) yield mapped;
// }
// }
// }

+ 1
- 0
tsconfig.json 查看文件

@ -4,6 +4,7 @@
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"incremental": true,
"isolatedModules": true,
"lib": ["es2019"],
"module": "esnext",
"moduleResolution": "node",

正在加载...
取消
保存