mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 13:30:28 +00:00
seamless-immutable. allow immutable instance for merge method (#43808)
This commit is contained in:
Vendored
+1
-1
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user