From 3a5542bda56e71115d4d61142da7284fe8973f7b Mon Sep 17 00:00:00 2001 From: Phoenix He Date: Fri, 28 Feb 2020 11:57:11 +0800 Subject: [PATCH] Fix iterator type --- src/index.ts | 4 ++++ src/iterableInternalType.ts | 1 + 2 files changed, 5 insertions(+) create mode 100644 src/iterableInternalType.ts diff --git a/src/index.ts b/src/index.ts index 492b32f..8c530b7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,6 +2,10 @@ * See this PR https://github.com/microsoft/TypeScript/pull/30790 */ +import { IterableInternal } from "./iterableInternalType"; + +export type Iterable = IterableInternal; + export type IterableEx = Iterable & { /** * The function returns an iterator of a this container own enumerable number-keyed value [key, value] pairs. diff --git a/src/iterableInternalType.ts b/src/iterableInternalType.ts new file mode 100644 index 0000000..bea644d --- /dev/null +++ b/src/iterableInternalType.ts @@ -0,0 +1 @@ +export type IterableInternal = Iterable;