mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-09-19 07:30:27 +00:00
Remove duplicate type from BaseImmutable
This commit is contained in:
Vendored
+1
-1
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user