Remove duplicate type from BaseImmutable

This commit is contained in:
Richard Honor
2018-10-29 13:21:18 +00:00
committed by Richard Honor
parent 3d82362c03
commit 7e8d1b02e5

View File

@@ -90,7 +90,7 @@ declare namespace SeamlessImmutable {
flatMap<TTarget>(mapFunction: (item: T[0]) => TTarget): Immutable<TTarget extends any[] ? TTarget : TTarget[]>;
}
type BaseImmutable<T> = (T extends any[] ? ImmutableArrayMixin<T> : ImmutableObjectMixin<T>) & T;
type BaseImmutable<T> = T extends any[] ? ImmutableArrayMixin<T> : ImmutableObjectMixin<T>;
type Immutable<T> = {
readonly [P in keyof T]: T[P] extends object ? Immutable<T[P]> : T[P]