X-Git-Url: https://git.josue.xyz/?p=VSoRC%2F.git;a=blobdiff_plain;f=node_modules%2Fnode-pty%2Fsrc%2Futils.ts;fp=node_modules%2Fnode-pty%2Fsrc%2Futils.ts;h=6306c8ba2f9de7a9cf8313dcac5dd0da21b0df01;hp=0000000000000000000000000000000000000000;hb=e79e4a5a87f3e84f7c1777f10a954453a69bf540;hpb=4339da12467b75fb8b6ca831f4bf0081c485ed2c diff --git a/node_modules/node-pty/src/utils.ts b/node_modules/node-pty/src/utils.ts new file mode 100644 index 0000000..6306c8b --- /dev/null +++ b/node_modules/node-pty/src/utils.ts @@ -0,0 +1,9 @@ +/** + * Copyright (c) 2017, Daniel Imms (MIT License). + * Copyright (c) 2018, Microsoft Corporation (MIT License). + */ + +export function assign(target: any, ...sources: any[]): any { + sources.forEach(source => Object.keys(source).forEach(key => target[key] = source[key])); + return target; +}