seamless-immutable. allow immutable instance for merge method (#43808)

This commit is contained in:
zvs001
2020-04-13 11:54:38 -07:00
committed by GitHub
parent c9f36a9e0c
commit 464b62da87
+1 -1
View File
@@ -67,7 +67,7 @@ declare namespace SeamlessImmutable {
asMutable(opts: AsMutableOptions<true>): T;
asMutable(opts: AsMutableOptions): T | { [K in keyof T]: Immutable<T[K]> };
merge(part: DeepPartial<T>, config?: MergeConfig): Immutable<T>;
merge(part: DeepPartial<T | Immutable<T>>, config?: MergeConfig): Immutable<T>;
update<K extends keyof T>(property: K, updaterFunction: (value: T[K], ...additionalParameters: any[]) => any, ...additionalArguments: any[]): Immutable<T>;
update<TValue>(property: string, updaterFunction: (value: TValue, ...additionalParameters: any[]) => any, ...additionalArguments: any[]): Immutable<T>;