mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Enable no-unsafe-assignments for MSSQL (#23407)
* Enable no-unsafe-assignments for MSSQL * Remove toString
This commit is contained in:
@@ -80,9 +80,9 @@ export function deepClone<T>(obj: T): T {
|
||||
const result: any = Array.isArray(obj) ? [] : {};
|
||||
Object.keys(<any>obj).forEach((key: string) => {
|
||||
if ((<any>obj)[key] && typeof (<any>obj)[key] === 'object') {
|
||||
result[key] = deepClone((<any>obj)[key]);
|
||||
result[key] = deepClone((<any>obj)[key]) as unknown;
|
||||
} else {
|
||||
result[key] = (<any>obj)[key];
|
||||
result[key] = (<any>obj)[key] as unknown;
|
||||
}
|
||||
});
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user