File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
tests/baselines/reference/api Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ namespace ts.server {
83
83
} ;
84
84
}
85
85
86
- export function mergeMapLikes ( target : MapLike < any > , source : MapLike < any > ) : void {
86
+ export function mergeMapLikes < T extends object > ( target : T , source : Partial < T > ) : void {
87
87
for ( const key in source ) {
88
88
if ( hasProperty ( source , key ) ) {
89
89
target [ key ] = source [ key ] ;
Original file line number Diff line number Diff line change @@ -4966,7 +4966,7 @@ declare namespace ts.server {
4966
4966
function ThrowProjectDoesNotContainDocument ( fileName : string , project : Project ) : never ;
4967
4967
}
4968
4968
function getDefaultFormatCodeSettings ( host : ServerHost ) : FormatCodeSettings ;
4969
- function mergeMapLikes ( target : MapLike < any > , source : MapLike < any > ) : void ;
4969
+ function mergeMapLikes < T extends object > ( target : T , source : Partial < T > ) : void ;
4970
4970
type NormalizedPath = string & {
4971
4971
__normalizedPathTag : any ;
4972
4972
} ;
You can’t perform that action at this time.
0 commit comments