Browse Source

Adds isolatedModules to tsconfig

main
Eric Amodio 4 years ago
parent
commit
1d97e38796
2 changed files with 1 additions and 13 deletions
  1. +0
    -13
      src/system/asyncIterable.ts
  2. +1
    -0
      tsconfig.json

+ 0
- 13
src/system/asyncIterable.ts View File

@ -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 View File

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

Loading…
Cancel
Save